G
Gerald Aichholzer
Hello NG,
I have an XHMTL-file and would like to replace attribute
values using XSLT. The XHTML-file contains the following
code:
<applet code="MyApplet/MyApplet.class"
archive="prog/MyApplet.jar"
width="100%"
height="99%">
<param name="image" value="MyAppletImage"/>
<param name="select" value="MyAppletSelect"/>
</applet>
I would like to replace MyAppletImage resp. MyAppletSelect
with the correspondg values.
I thought about using the identity transformation plus
a construct like the following (which does not work,
unfortunately):
<xsl:template match="@value='MyAppletImage'">
<xsl:attribute name="value">
<xsl:value-of select="$image"/>
</xsl:attribute>
</xsl:template>
The purpose is to replace only these two attributes and
otherwise leave the original file as it is.
Any help is appreciated.
Thanx in advance,
Gerald
I have an XHMTL-file and would like to replace attribute
values using XSLT. The XHTML-file contains the following
code:
<applet code="MyApplet/MyApplet.class"
archive="prog/MyApplet.jar"
width="100%"
height="99%">
<param name="image" value="MyAppletImage"/>
<param name="select" value="MyAppletSelect"/>
</applet>
I would like to replace MyAppletImage resp. MyAppletSelect
with the correspondg values.
I thought about using the identity transformation plus
a construct like the following (which does not work,
unfortunately):
<xsl:template match="@value='MyAppletImage'">
<xsl:attribute name="value">
<xsl:value-of select="$image"/>
</xsl:attribute>
</xsl:template>
The purpose is to replace only these two attributes and
otherwise leave the original file as it is.
Any help is appreciated.
Thanx in advance,
Gerald