|
Subject: [xsl] xsl variable, param: need references to full tree From: Simeon Ott <sot@xxxxxx> Date: Thu, 22 Jan 2004 10:22:36 +0100 |
<tablehead>
<title> <!-- this is element 1 -->
<value>Saldo letzter Abschluss</value>
<cssclass>head</cssclass>
<colwidth>250</colwidth>
<visibility>visible</visibility>
<layout>fixed</layout>
<subtitles>
<title> <!-- this is element 2 -->
<value>Soll</value>
<cssclass>head</cssclass>
<colwidth>125</colwidth>
<sortorder>no</sortorder>
</title>
<title> <!-- this is element 3 -->
<value>Haben</value>
<cssclass>head</cssclass>
<colwidth>125</colwidth>
<sortorder>no</sortorder>
</title>
</subtitles>
</title>
</tablehead>- call to template: <xsl:call-template name="jumptolevel" > <!-- specify the level --> <xsl:with-param name="level" select="1" /> <!-- root titles --> <xsl:with-param name="elements" select="/tablehead/title" /> </xsl:call-template>
- template itself: <xsl:template name="jumptolevel"> <xsl:param name="i" select="0" /> <xsl:param name="level" select="0" /> <xsl:param name="elements" />
<xsl:variable name="test">
<xsl:call-template name="jumptolevel" >
<!-- specify the level -->
<xsl:with-param name="level" select="1" />
<!-- root titles -->
<xsl:with-param name="elements" select="/tablehead/title" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="name($test/..)" />thanks in advance (sorry, for my bad english, i'm swiss ;) jimmy
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] check for optional elemen, Michael Kay | Thread | RE: [xsl] Printing blank line, Jarno . Elovirta |
| [xsl] check for optional element, Nikolas Nehmer | Date | RE: [xsl] Get external xml-data thr, Jarno . Elovirta |
| Month |