[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using variable in mode attribute
Hi All, I have the following code which does not work. if I replace the mode="$BID" with mode="id1" in line 4, it works. so my question is does the mode attribute take a variable? if it does not, what should I do? xml: <A> <B ID="id1"/> </A> xsl: <xsl:template match="A"> <xsl:for-each select="B"> <xsl:variable name="BID" select="@ID"/> <xsl:apply-templates select="self::B" mode="$BID"/> </xsl:for-each> </xsl:template> <xsl:template match="B" mode="id1"> whatever <xsl:apply-templates select="self::B" mode="table"/> </xsl:template> <xsl:template match="B" mode="table"> table </xsl:template> thanks Long XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|