OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: One question on xsl

[ Lists Home | Date Index | Thread Index ]
  • From: THOMAS PASSIN <tpassin@idsonline.com>
  • To: "Murali Krishnan" <menon@nagpur.dot.net.in>, <xml-dev@xml.org>
  • Date: Tue, 14 Mar 2000 00:44:23 -0500

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@nagpur.dot.net.in>
To: <xml-dev@xml.org>
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@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS