[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hello,
I am not understanding why the following xslt snipped produces an empty 'someElement' element (XSLT 1.0):
<xsl:template match="/">
<xsl:call-template name="printSomeAttributes">
<xsl:with-param name="attributes">
<xsl:attribute name="juhu">Hello World!</xsl:attribute>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="printSomeAttributes">
<xsl:param name="attributes"/>
<xsl:element name="someElement">
<xsl:value-of select="$attributes"/>
</xsl:element>
</xsl:template>
Thank you for your answer(s).
Best regards,
Free evaluation of UML tools
[xsl] xsl:attributes as parameter to a template
Subject: [xsl] xsl:attributes as parameter to a template From: Jan Tietjens <jan.tietjens@xxxxxxxxxxxxxx> Date: Tue, 03 May 2005 11:36:37 +0200 |
Hello,
I am not understanding why the following xslt snipped produces an empty 'someElement' element (XSLT 1.0):
<xsl:template match="/">
<xsl:call-template name="printSomeAttributes">
<xsl:with-param name="attributes">
<xsl:attribute name="juhu">Hello World!</xsl:attribute>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="printSomeAttributes">
<xsl:param name="attributes"/>
<xsl:element name="someElement">
<xsl:value-of select="$attributes"/>
</xsl:element>
</xsl:template>
Thank you for your answer(s).
Best regards,
-- Jan Tietjens
Gentleware AG www.gentleware.com
Free evaluation of UML tools
Looking for a convenient entry into the unified modeling language? Check out what the modeling tool Poseidon for UML can do for you by evaluating the edition of your choice. http://www.gentleware.com?redirect=evaluate
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Xpath - Selecting node th, Michael Kay | Thread | RE: [xsl] xsl:attributes as paramet, Michael Kay |
RE: [xsl] Xpath - Selecting node th, Michael Kay | Date | RE: [xsl] xsl:attributes as paramet, Michael Kay |
Month |
Keywords