[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT (XML Schema to XML Document problem)

Subject: XSLT (XML Schema to XML Document problem)
From: "Alex Genis" <agenis@xxxxxxxx>
Date: Mon, 14 Jan 2002 10:54:02 -0500
xslt xml xmlns
My task is to write XSLT which should convert XML Document into another XML
Document.
Input XML Document is XML Schema which has the following structure :

<Envelope xmlns="EN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="EN /xmls/1.9/EN.xsd">
    <Header>
      ....
    </Header>
    <Body>
         <TS xmlns="TS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="TS /xmls/1.9/TS.xsd">
          ...
         </TS>
    </Body>
</Envelope>

The following XSLT does not work
   <xsl:template match="Envelope" >
     ...
     <xsl:apply-templates select="Body" />
  </xsl:template>

  <xsl:template match="Body">
   <xsl:apply-templates select="TS" />
  </xsl:template>

  <xsl:template match="TS" >
   ...
  </xsl:template>

But if appropriate input element do not contain "xmlns", "xmlns:xsi" and "xsi:schemaLocation" parametrs :

<Envelope>
    <Header>
      ....
    </Header>
    <Body>
         <TS>
          ...
         </TS>
    </Body>
</Envelope>

everything works properly. Could you please help me to solve the problem ? Thanks.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.