You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Stanimir Stamenkov <st...@myrealbox.com> on 2005/06/21 12:57:49 UTC

lexical-handler/parameter-entities feature not recognized

Using Xerces2 version 2.6.2 and trying to set the 
"http://xml.org/sax/features/lexical-handler/parameter-entities" 
feautre on a SAX parser results in a 
'org.xml.sax.SAXNotRecognizedException' being thrown. Shouldn't this 
be a 'org.xml.sax.SAXNotSupportedException', at least?

-- 
Stanimir


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: lexical-handler/parameter-entities feature not recognized

Posted by Stanimir Stamenkov <st...@myrealbox.com>.
/Michael Glavassevich/:
> Stanimir Stamenkov <st...@myrealbox.com> wrote on 06/21/2005 06:57:49 AM:
> 
>> Using Xerces2 version 2.6.2 and trying to set the 
>> "http://xml.org/sax/features/lexical-handler/parameter-entities" 
>> feautre on a SAX parser results in a 
>> 'org.xml.sax.SAXNotRecognizedException' being thrown. Shouldn't this 
>> be a 'org.xml.sax.SAXNotSupportedException', at least?
>
> It's probably the case that no one realized that this feature existed.
[...]

A bit OT: May be the "NotRecognizedExcepetion" should be made as 
subtype of "NotSupportedException", because if it's not recognized - 
it is not supported for sure. :-) It is that one could handle only 
the more general type and debug the exact type of exception at the 
same type. But this is up to the SAX project, I guess.

-- 
Stanimir


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: lexical-handler/parameter-entities feature not recognized

Posted by Stanimir Stamenkov <st...@myrealbox.com>.
/Michael Glavassevich/:

> It's probably the case that no one realized that this feature existed. I 
> don't think the SAX specification says that all features defined by it 
> need to be recognized.

I see. I was just glancing at 
<http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description> 
and seems I've missed <http://www.saxproject.org/get-set.html>:

> There is no fixed set of features or properties available for SAX2, 
> except for two features that all XML parsers must support. 
> Implementors are free to define new features and properties as 
> needed, using URIs to identify them.
> 
> All XML readers are required to recognize the 
> "http://xml.org/sax/features/namespaces" and the 
> "http://xml.org/sax/features/namespace-prefixes" features (at least 
> to get the feature values, if not set them) and to support a true 
> value for the namespaces property and a false value for the 
> namespace-prefixes property.

/Michael Glavassevich/:

> It's supported in the CVS for many months now. If 
> you're interested in using this feature, you'll be able to use it very 
> soon. Xerces 2.7.0 is scheduled for the end of this week.

Sounds promising. :-)

Thank you for the info,
-- 
Stanimir


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: lexical-handler/parameter-entities feature not recognized

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
It's probably the case that no one realized that this feature existed. I 
don't think the SAX specification says that all features defined by it 
need to be recognized. It's supported in the CVS for many months now. If 
you're interested in using this feature, you'll be able to use it very 
soon. Xerces 2.7.0 is scheduled for the end of this week.

Thanks.

Stanimir Stamenkov <st...@myrealbox.com> wrote on 06/21/2005 06:57:49 AM:

> Using Xerces2 version 2.6.2 and trying to set the 
> "http://xml.org/sax/features/lexical-handler/parameter-entities" 
> feautre on a SAX parser results in a 
> 'org.xml.sax.SAXNotRecognizedException' being thrown. Shouldn't this 
> be a 'org.xml.sax.SAXNotSupportedException', at least?
> 
> -- 
> Stanimir
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org