Subject: Re: [xsl] Updating Attribute Values From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 15 Aug 2013 10:59:19 -0400 |
I'd like to change the values of attribute "href", whenever it appears inside a "dao" element. From what I can tell, my template is correct, however when ever I stick anything inside xsl:attribute (replace <!-- do stuff here -->, nothing happens during the transformation. Am I missing something?
<xsl:template match="@href[parent::dao]"> <xsl:attribute name="href"> <!-- do stuff here --> </xsl:attribute> </xsl:template>
I'm using XSLT 2.0, Saxon 6.5.5.
-- Public XSLT, XSL-FO, and UBL classes in the Netherlands Oct 2013 | Public XSLT, XSL-FO, UBL and code list classes in Australia Oct 2013 | Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Updating Attribute Values, Nathan Tallman | Thread | Re: [xsl] Updating Attribute Values, Martin Holmes |
[xsl] Updating Attribute Values, Nathan Tallman | Date | Re: [xsl] Updating Attribute Values, Martin Holmes |
Month |