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. Advertisements

  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. Advertisements

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. simon ames
    Replies:
    1
    Views:
    684
    Joerg Jooss
    Apr 11, 2004
  2. Markus
    Replies:
    1
    Views:
    1,944
    Markus
    Nov 23, 2005
  3. Replies:
    1
    Views:
    1,215
    Martin Honnen
    Jan 14, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,580
    Stanimir Stamenkov
    Apr 25, 2005
  5. stiank81
    Replies:
    4
    Views:
    16,055
    stiank81
    Jun 26, 2005
  6. Rushi
    Replies:
    1
    Views:
    718
  7. -saarland.de
    Replies:
    8
    Views:
    2,016
    naivexml
    May 16, 2011
  8. Replies:
    5
    Views:
    1,745
    Brian McCauley
    Nov 29, 2006
Loading...