Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
XSLT: how to match attribute having a specific value?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gerald Aichholzer, post: 779231"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
XSLT: how to match attribute having a specific value?
Top