Subject: [xsl] user-defined types in something other than Schema? From: Erik Hennum <erikh501@xxxxxxxxx> Date: Tue, 4 Jan 2005 08:10:45 -0800 (PST) |
Regarded XSLT Mavens: Is it possible to declare user-defined types for XSLT 2.0 with something other than XML Schema? As I read http://www.w3.org/TR/xslt20/ , the xsl:import-schema statement supports only XML Schema. For instance, one can't provide an adapter for xsl:import-schema statement that implements non-Schema typing such as ooRelaxNG or DTLL. For another example, DITA ( http://xml.coverpages.org/dita.html ) uses a schema-independent class attribute to declare the type ancestry. DITA users would like to use type matching on DITA documents regardless of the schema language or even without schema validation. Would it be conceivable for a DITA implementer to create a DITA adapter for xsl:import-schema that could populate the type annotation based on the DITA class attribute? Or, could a DITA implementer provide templates that add type annotation to the tree and declare the type hierarchy prior to firing templates that match the tree based on the type? As a workaround for non-Schema type definitions, might one generate a Schema in which each element has the correct type and each type has the correct base type but each type can contain any element or attribute? Thanks in advance for corrections, insights, and references, Erik Hennum erikh501 AT yahoo DOT com __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Namespace issue when usin, Andrew Male | Thread | RE: [xsl] user-defined types in som, Michael Kay |
RE: [xsl] counting the no of lines , António Mota | Date | Re: [xsl] XML Date/Time service upd, Daniel Bibbens |
Month |