On Mar 20, 11:06*am, Martin Honnen <mahotr...@yahoo.de> wrote:
> Stu wrote:
> > I have an XML file (see below) and I am looking to create an .xsl file
> > that will
> > replace this line <actual_volume>{VAR}</actual_volume> with this
> > line <actual_volume>e:/tmp/xyz</actual_volume>
>
> Start with the identity transformation, then add a template for that
> element:
>
> <xsl:stylesheet
> * *xmlns
sl="http://www.w3.org/1999/XSL/Transform"
> * *version="1.0">
>
> * *<xsl:template match="@* | node()">
> * * *<xsl:copy>
> * * * *<xsl:apply-templates select="@* | node()"/>
> * * *</xsl:copy>
> * *</xsl:template>
>
> * *<xsl:template match="actual_volume[. = '{VAR}']">
> * * *<xsl:copy>
> * * * *<xsl:text>e:/tmp/xyz</xsl:text>
> * * *</xsl:copy>
> * *</xsl:template>
> </xsl:stylesheet>
>
> --
>
> * * * * Martin Honnen
> * * * *http://JavaScript.FAQTs.com/
Martin,
Thanks for your response but I failed to be specific and I apologize
for that.
I ONLY want to to change the line <actual_volume>{VAR}</
actual_volume> WHERE <logical_library>DATA</logical_library> in my
example, which I failed to show earlier I could have multiple lines
of <actual_volume>{VAR}</actual_volume>. Your solution changes
eveything.
Thanks in advance for your help