users@fi.java.net

Problem with FastInfosetSource and Namespaces

From: Gaussmann, Horst <Horst.Gaussmann_at_partner.commerzbank.com>
Date: Thu, 6 Apr 2006 16:17:40 +0200

Hello,

i try to transform a FastInfoset document using Saxon as the Transformer. So
my problem is that saxon tries to set the Namespaces feature but the
SAXDocumentParser
used from FastInfosetSource claims to handle this feature see getFeature but
if saxon tries to set it an Exception is thrown. So what's up support or not
support of the feature ?

  public boolean getFeature(String name)
    throws SAXNotRecognizedException, SAXNotSupportedException {
        if (name.equals(Features.NAMESPACES_FEATURE)) {
            return true; ...

 public void setFeature(String name, boolean value)
    throws SAXNotRecognizedException, SAXNotSupportedException {
        if (name.equals(Features.NAMESPACES_FEATURE)
        && value == false) {
            throw new SAXNotSupportedException(name + ":" + value);
        } else if (name.equals(Features.NAMESPACE_PREFIXES_FEATURE)) {
            _namespacePrefixesFeature = value;
        } else if (name.equals(Features.STRING_INTERNING_FEATURE) ||
                name.equals(FastInfosetReader.STRING_INTERNING_PROPERTY)) {
            setStringInterning(value);
        } else {
            throw new SAXNotRecognizedException(
 
CommonResourceBundle.getInstance().getString("message.featureNotSupported")
+ name);
        }

I don't know...

Thanx for help