This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: cannot reach the inner tags


I may not have understood what you are looking for in output, but I think
you are missing a for-each loop

<xsl:template match="Nummer">
 <table>
 <xsl:for-each select="Nummer.AZ">
 <tr>
  <td><xsl:value-of select="."/></td>
 </tr>
 </xsl:for-each>
<xsl:for-each select="Nummer.Satz">
<tr>
  <td><p align="justify"><xsl:value-of select="."/></p></td>
</tr>
</xsl:for-each>
 </table>
 </xsl:template>

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Franz Figl
Sent: Thursday, February 22, 2001 4:07 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] cannot reach the inner tags



Hi list,

I cannot reach the tags b-e with this xsl, I need the first <td>'s empty
after the second line.
Could someone give me a hint please?

Franz


I need the following:
1.   a text text text
       b text text text
       c text text text...


<Nummer>
  <Nummer.AZ><fett>1.</fett></Nummer.AZ>
  <Nummer.Satz>a</Nummer.Satz>
  <Nummer.Satz>b</Nummer.Satz>
  <Nummer.Satz>c</Nummer.Satz>
  <Nummer.Satz>d</Nummer.Satz>
  <Nummer.Satz>e</Nummer.Satz>
</Nummer>


<xsl:template match="Nummer">
 <table>
 <xsl:for-each select="Nummer.AZ | Nummer.Satz">
 <tr>
  <td><xsl:value-of select="Nummer.AZ"/></td>
  <td><p align="justify"><xsl:value-of select="Nummer.Satz"/></p></td>
 </tr>
 </xsl:for-each>
 </table>
 </xsl:template>







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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]