|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: One question on xsl
I changed "case" to "book" in your stylesheet (3 places) and it produced the
results you probably intended. Your example XML has no <case>, only a
<book> element.
Tom Passin
----- Original Message -----
From: Murali Krishnan <menon@n...>
To: <xml-dev@x...>
Sent: Monday, March 13, 2000 8:52 PM
Subject: One question on xsl
hello,
i have been writing an XSL to convert some XML files, and i encountered
the following problem:
this is part of the xml file:
<book>
<date>.........</date>
<para>..........</para>
<history>
<para>..........</para>
<fact>............</fact>
<discussion>.......</discussion>
<para>..........</para>
<pageno>.......</pageno>
<para>..........</para>
<para>..........</para>
<pageno>.......</pageno>
</history>
</book>
the problem i am facing is that below the child node of history tag, I
could display only the para tags, the other tags like <facts>, <discussion>
and <pageno> tags doesn't get displayed.
The part of xsl below the history tag is like this.
<xsl:for-each select="case/history/para">
<p>
<xsl:value-of/>
</p>
</xsl:for-each>
<xsl:for-each select="case/history/fact">
<DIV STYLE="text-align:center">
<xsl:value-of/>
</DIV>
</xsl:for-each>
<xsl:for-each select="case/history/discussion">
<DIV STYLE="text-align:center">
<xsl:value-of/>
</DIV>
</xsl:for-each>
Menon
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








