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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--