Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Controlled Intermixing of Namespaced Element Types

From: "Michael Kay" <mike@--------.--->
To: "'Eliot Kimber'" <ekimber@---------------.--->, "'xml-schema-dev'" <xmlschema-dev@--.--->
Date: 3/24/2005 3:46:00 PM
> I'm thinking mostly about generalized processors that want to 
> be able to
> examine the type heirarchy of an element to see if it is a type they
> recognize, i.e., in this example a generic table renderer that expects
> the base types of table elements to be types it recognizes. I need to
> see what the XSLT processing implications are....

There's a lot of support for this kind of thing in XPath 2.0 and XSLT 2.0.

<xsl:template match="schema-element(ABC)">

matches any element whose name is ABC or a name in the substitution group of
ABC (which must be the name of a global element declaration)

<xsl:template match="element(*, XYZtype)">

matches any element whose schema-type is XYZtype or a type derived from
XYZtype, which must be a named simple or complex type definition in the
schema.

So in principle the mechanisms are there to define processing at whatever
level of the type hierarchy you want, and this applies whether you are
specializing by using substitution groups or by deriving types. 

But I agree with you that it's not easy to work out which of these
facilities to use in a given situation.

Michael Kay
http://www.saxonica.com/



From ekimber@i... Thu Mar 24 15:55:16 2005
Recei


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