Subject: Two implementations, different results From: "Terris" <terris@xxxxxxxxxx> Date: Thu, 23 Sep 1999 12:27:22 -0700 |
With the attached document and style sheet, I get the following output with xt (http://www.jclark.com/xml/xt.html): (sansthe namespace junk) <Accounts> <Account> <Balance>500</Balance> </Account> <Account> <Balance>1000</Balance> </Account> </Accounts> With the Oracle V2 parser (9/14 drop) I get: <Accounts> <root> <Account> <Balance>500</Balance> </Account> </root> </Accounts> Which implementation is right? What is <root> doing in Oracle's output? The document: <Account> <Balance>500</Balance> </Account> The stylesheet: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">; <xsl:output method="xml" indent="yes"/> <xsl:variable name="source"> <Account> <Balance>1000</Balance> </Account> </xsl:variable> <!--source of data--> <!-- Merge two <Accounts> by appending each Account --> <xsl:template match="/"> <Accounts> <xsl:copy-of select="."/> <xsl:for-each select="document('')"> <xsl:copy-of select="//xsl:variable[@name = 'source']/*"/> </xsl:for-each> </Accounts> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
frameset question, Yu, Meng | Thread | RE: Two implementations, different , Steve Muench |
Re: How Can You Exit an xsl:for-eac, Dan Machak | Date | Re: How Can You Exit an xsl:for-eac, Michael Teigman |
Month |