I was able to get it to work as described. However, the following command is confusing me.
<xsl:template match="xsd:element">
Is there any other variation on this statement I can use? For example, I want to display a series of two elements and two corresponding parent attributes in a two column table from the XSD. But this above statement restricts me to just finding elements so far as I can tell. I've Googled this statement and can't find any other explanation for it.
Here's the original post.
=====================
Porthos wrote:
[color=blue]
> One of the virtues of using schemas is that they are XML documents
> themselves. I have several schema files (one imports the next, which
> imports the next, and so on) that describe/enforce the rules for XML
> instance documents that I create.
>
> I want to read and process these schema files using an XSL(T) document
> to produce a user friendly/more readable version of these rules. I can
> take care of the formatting, but how do I access the tags in the schema
> documents from my XSL(T) file to get the information in the first
> place?[/color]
That is not different from any XSLT task (well XSLT processing an XML
file with namespaces) e.g.:
Expand|Select|Wrap|Line Numbers
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- version="1.0">
- <xsl:template match="xsd:element">
- ...
- </xsl:template>
- </xsl:stylesheet>
Martin Honnen
http://JavaScript.FAQTs.com/
It's likely you've seen this already Don, but I did find this link quite fetching. Care to give it a closer look!
http://www.stylusstudio.com/schema_aware.html#