|
Subject: [xsl] Replace an attribute From: <seantiley@xxxxxxxxxxx> Date: Thu, 3 Jan 2008 21:49:37 -0500 |
Hi there,
I am new to xslt but I have an xml file in the following format
<root>
<file name=3D"c:\blah\blah\class.java">
<error line=3D"1" message=3D"Parameter status should be final"/>
</file>
</root>I would like to be able to replace the name attribute of the file = element in the original file and leave the rest of the file intact, then = pass the results to a different stylesheet.
I had a look at the replace function and tried something like this <xsl:value-of select=3D'replace(@name,"c:\blah\blah\*","files")'/>
Any advice or suggestions are welcomed, perhaps another function should = be used but replace sure seems right
Thanks Sean
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XSL-List Guidelines, Mulberry Technologie | Thread | Re: [xsl] Replace an attribute, Jesper Tverskov |
| Re: [xsl] document() function and e, Abel Braaksma | Date | RE: [xsl] document() function and e, XSL-List Owner |
| Month |