Subject: Re: [xsl] XML transformation based on parameters From: "Sam Byland" <shbyland@xxxxxxxxxxx> Date: Tue, 14 Apr 2009 11:53:20 -0400 |
<xsl:param name="p" select="id"/> <xsl:param name="v" select="newvalue"/>
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template>
<xsl:choose> <xsl:when test="@name = $p"> <xsl:value-of select="$v"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XML transformation based , Emiliano Pecis | Thread | Re: [xsl] XML transformation based , Emiliano Pecis |
Re: [xsl] XML transformation based , Emiliano Pecis | Date | Re: [xsl] Re: How to handle dynamic, Mukul Gandhi |
Month |