Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Including schema with target namespace from schema with no target namespace

From: Bob Kline <bkline@---------.--->
To: xmlschema-dev@--.---
Date: 2/10/2009 4:04:00 AM
Tobias Koenig wrote:
> If the target namespace of the 'to be included' schema differs from the
> target namespace of the including schema, you have to use <import> instead of <include>.
>   

Ah, yes.  I missed that.  Thanks very much.  And thanks to Ken for his 
very helpful example.

I extended things a bit by using attribute groups in the imported schema 
so I could apply different pattern constraints to the values depending 
on where the attributes are being used in the importing schema.  Is 
there a cleaner approach available for doing this?

I did stumble over one other (figurative) root in the path: the W3C 
tutorial at [1] makes it look (in the example for section 2.8) as if 
you're supposed to use "id" instead of "name" to identify an 
attributeGroup you're defining, but I'm guessing that's just a 
typographical error, because the schema processors don't seem to like 
it. :-)

[1] http://www.w3.org/TR/xmlschema-0/

-- 
Bob Kline
http://www.rksystems.com
mailto:bkline@r...


From vaseemkhanusa@g... Wed Feb 11 14:51:36 2009
Received: fro


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent