Re: Editing XML
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Mon, 11 Jun 2007 10:16:53 +0200
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
.
- Follow-Ups:
- Re: Editing XML
- From: Maarten Wiltink
- Re: Editing XML
- References:
- Editing XML
- From: Hans-Peter Diettrich
- Re: Editing XML
- From: Rob Kennedy
- Re: Editing XML
- From: Hans-Peter Diettrich
- Re: Editing XML
- From: Rob Kennedy
- Re: Editing XML
- From: Rob Kennedy
- Editing XML
- Prev by Date: Re: Editing XML
- Next by Date: Re: Set the CheckBox.Checked without the OnClick being called
- Previous by thread: Re: Editing XML
- Next by thread: Re: Editing XML
- Index(es):