[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Gerhard Glatz wrote:
I think you want e.g.
<xsl:template match="disk/tracks[track[multipart[@attribute = 'value']]]">
<xsl:copy>
<xsl:apply-templates select="@* | node()">
<track>
<length>
<xsl:value-of select="select-what-you-need-here"/>
</length>
</track>
</xsl:copy>
</xsl:template>
plus the identity transformation template.
--
Re: [xsl] Insert new element depending on value of attribute
Subject: Re: [xsl] Insert new element depending on value of attribute From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 18 Feb 2008 19:26:59 +0100 |
Gerhard Glatz wrote:
Does anybody have a hint, where and how I should add something like <xsl:if test="multipart/@attribute=desired_value"> ??
I think you want e.g.
<xsl:template match="disk/tracks[track[multipart[@attribute = 'value']]]">
<xsl:copy>
<xsl:apply-templates select="@* | node()">
<track>
<length>
<xsl:value-of select="select-what-you-need-here"/>
</length>
</track>
</xsl:copy>
</xsl:template>
plus the identity transformation template.
--
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Insert new element depending , Gerhard Glatz | Thread | [xsl] Using XSLT's key() function w, Michael Ludwig |
[xsl] Insert new element depending , Gerhard Glatz | Date | [xsl] Using XSLT's key() function w, Michael Ludwig |
Month |