|
Subject: [xsl] <xsl:with-param> does not work with <xsl:apply-templates> From: Katharina Kreis <katharinakreis@xxxxxx> Date: Tue, 01 Mar 2005 09:21:34 +0100 |
XML-File:
*<?xml version="1.0"?>
<Building>
<Floor>
<Room>
<number>1</number>
<wall_IDs>
<wall_ID>123</wall_ID>
<wall_ID>234</wall_ID>
<wall_ID>345</wall_ID>
<wall_ID>456</wall_ID>
</wall_IDs>
</Room>
<Room>
<number>2</number>
<wall_IDs>
<wall_ID>123</wall_ID>
<wall_ID>678</wall_ID>
<wall_ID>789</wall_ID>
<wall_ID>901</wall_ID>
</wall_IDs>
</Room>
</Floor>
<Wall_List>
<Wall ID="123">
<width>2</width>
</Wall>
<Wall ID="234">
<width>3</width>
</Wall>
<Wall ID="345">
<width>2</width>
</Wall>
<Wall ID="456">
<width>1</width>
</Wall>
</Wall_List>
</Building><xsl:template name="Room" match="Room">
<!-- ... -->
<xsl:for-each select="wall_IDs/wall_ID">
<xsl:variable name="wall_ID" select="."/>
<xsl:apply-templates select="/Building/Wall_List/Wall">
<xsl:with-param name="wallID" select="$wall_ID"/>
</xsl:apply-templates>
</xsl:for-each>
</xsl:template><xsl:template name="Wall" match="Wall"> <xsl:param name="wallID"/> <!-- ... --> </xsl:template>
Thanks for helping Katharina
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Is it possible to display, Jarno.Elovirta | Thread | Re: [xsl] Document function with Sa, James Fuller |
| Re: [xsl] [ANN] practice.xsltwiki.c, James Fuller | Date | Re: [xsl] Document function with Sa, James Fuller |
| Month |