Processing XSD Schema File

Discussion in 'XML' started by Porthos, Dec 23, 2004.

  1. Porthos

    Porthos Guest

    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?

    Thanks,

    -James
    Porthos, Dec 23, 2004
    #1
    1. Advertising

  2. Porthos wrote:

    > 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?


    That is not different from any XSLT task (well XSLT processing an XML
    file with namespaces) e.g.:
    <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/
    Martin Honnen, Dec 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,530
    Markus
    Nov 23, 2005
  2. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,251
    Stanimir Stamenkov
    Apr 25, 2005
  3. stiank81
    Replies:
    4
    Views:
    15,395
    stiank81
    Jun 26, 2005
  4. Rushi
    Replies:
    1
    Views:
    547
  5. Replies:
    5
    Views:
    1,007
    Brian McCauley
    Nov 29, 2006
Loading...

Share This Page