[Home] [By Thread] [By Date] [Recent Entries]
On 15/08/2013 15:41, Nathan Tallman wrote:
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? In addition to the other comments re XSLT version and namespaces, a template matching an attribute only does anything if you apply templates to that attribute. The default processing does not do that: <xsl:template match="dao"> ... stuff.. <xsl:apply-templates/> .. </xsl:template> would apply templates to child nodes of <dao> but not to its attributes. David
|

Cart



