Dr. Roger L Costello costello(_at_)mitre(_dot_)org
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> writes:
I want to do something like this:
<xsl:template match="/">
<Results>
<xsl:for-each select="//*">
<element>
<name><xsl:value-of select="name()"/></name>
<file>GET THE NAME OF THE SCHEMA FILE THAT CONTAINS
THE ELEMENT DECLARATION</file>
I’m not sure that’s possible in the general case. I forget the exact
terminology that the spec uses, but the schema components available at
runtime may be the result of the union of several different schema
files. (I haven’t looked to see if the Saxon schema component model
includes pointers to the file(s) that contributed to the component.)
<maxOccurs>GET THIS VALUE FROM THE SCHEMA</maxOccurs>
…
The resolved facets are presumably in the schema component model. But I
haven’t looked at it. Mostly I use RELAX NG :-)
Be seeing you,
norm
--
Norman Tovey-Walsh <ndw(_at_)nwalsh(_dot_)com>
https://nwalsh.com/
An audience is never wrong. An individual member of it may be an
imbecile, but a thousand imbeciles together in the dark—that is
critical genius.--Billy Wilder
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
signature.asc
Description: PGP signature