The WGs explicitly decided not to include such a "reflection" capability in
the current version of the languages, I think because of the amount of
design work involved. I agree that it's a pain working from the source XML
representation of the schema. It would be better to have an XML "normalized"
view of the schema component model.
With Saxon there's an alternative approach of implementing a set of
extension functions that encapsulate Saxon's Java API for schema access.
That's not ideal either because the navigation is likely to be very tedious.
A custom NodeInfo implementation in which a Node represents a schema
component would be better: but I'm afraid that there are no immediate plans.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: alan(_dot_)painter(_at_)sgcib(_dot_)com
[mailto:alan(_dot_)painter(_at_)sgcib(_dot_)com]
Sent: 26 June 2006 15:57
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Browsing XML Schema Data from XSLT
Is there any chance that there is a facility in XSLT 2.0 for
interrogating the xml-schemae that have been imported by
<xsl:import-schema>?
I was imagining doing a <xsl:for-each> over the attributes
and/or elements defined in a particular schema type.
I understand that I can simply read the XSD as a separate XML
document, but that means that I'll have to
-- use <xsl:import-schema> for the schema-based XSLT processing
-- use "document()" to peruse the Schema definition within XSLT
It'd be nice to avoid having to specify the file location
separately for <xsl:import-schema> and for document().
thanks for any points
-alan
**************************************************************
***********
This message and any attachments (the "message") are
confidential and intended solely for the addressee(s).
Any unauthorised use or dissemination is prohibited. E-mails
are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or
affiliates shall be liable for the message if altered,
changed or falsified.
************ Ce message et
toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee
est interdite. Tout message electronique est susceptible
d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute
responsabilite au titre de ce message s'il a ete altere,
deforme ou falsifie.
**************************************************************
***********
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--