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 br...@sweetxml.org on 2005/07/12 10:55:23 UTC

Re: [XML Schema] Multiple s for a same namespace from different locations

Stanimir,

yes there is, I also needed that feature and luckily some good folks with
the needed knowledge implemented it earlier this year (Thanks!), it is:

http://apache.org/xml/features/honour-all-schemaLocations

your can see the documentation, at the xerces website:

http://xml.apache.org/xerces2-j/features.html

regrads
Brian





> Though the XML Schema specification explicitly states
> <http://www.w3.org/TR/xmlschema-1/#src-import>:
>
>> ... it is open to applications to ignore all but the first <import>
>> for a given namespace...
>
> I've wondered if there's a feature to configure the
> 'XMLSchemaLoader' to process all the documents linked from <import>
> statements for a same namespace?
>
> --
> Stanimir
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
>



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


Re: [XML Schema] Multiple s for a same namespace from different locations

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

> I'm having troubles using that property for standalone 
> schema loading as through 'XMLSchemaLoader' instance - it is not 
> recognized property.

Sorry everybody - false alarm. Seems I had Xerces version library 
conflicts with the older 2.6.2 release.

-- 
Stanimir


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


Re: [XML Schema] Multiple s for a same namespace from different locations

Posted by Stanimir Stamenkov <st...@myrealbox.com>.
/brian@sweetxml.org/:

> yes there is, I also needed that feature and luckily some good folks with 
> the needed knowledge implemented it earlier this year (Thanks!), it is:
> 
> http://apache.org/xml/features/honour-all-schemaLocations
> 
> your can see the documentation, at the xerces website:
> 
> http://xml.apache.org/xerces2-j/features.html

Thank you, Brian. I'm having troubles using that property for 
standalone schema loading as through 'XMLSchemaLoader' instance - it 
is not recognized property. I've tried setting it as parameter on 
the 'XMLSchemaLoader.config' object and then I get:

FEATURE_NOT_SUPPORTED: The parameter 
http://apache.org/xml/features/honour-all-schemaLocations is 
recognized but the requested value cannot be set.

I'm setting it as:

> XMLSchemaLoader schemaLoader = new XMLSchemaLoader();
> schemaLoader.getConfig()
>         .setParameter("http://apache.org/xml/features/honour-all-schemaLocations",
>                       Boolean.TRUE);

Should I use a custom entity/resource resolver in this scenario or 
that feature uses other schema loading mechanism I'm missing?

-- 
Stanimir


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