[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Insert new element depending on value of attribute
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/
|
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
|