Re: Editing XML



Rob Kennedy wrote:

Here's the XSL document I used on the same test.xml file I talked about before. I named it transform.xsl.

Thanks for all your assistance :-)


<xsl:template match="MSHelp:link">
<xsl:element name="a">
<xsl:copy-of select="@*"/>

How should this read, in order to translate the keywords="..." into a href="html/...htm" attribute, dropping all other attributes?


To perform the transformation, I used Ant, the Java build tool, because that's the only way I know how to invoke XSL transformations.

Hmmm, a transformation should be made whenever my browser has to show a help page. Unless there exists a simpler programmatic way of invoking the script, I'll stick with cloning the nodes.

DoDi
.