[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Dublicate attribute to several image tags under trans

Subject: Dublicate attribute to several image tags under transformation
From: "John Stubbe" <johnstubbe@xxxxxxx>
Date: Mon, 07 Aug 2006 14:10:02 +0000
dublicate
Dear XSLT experts

I have an issue regarding adding an extra attribute under a transformation.

I have an entry in my source XML file that consists of content from a WYSIWYG editor. I need to duplicate an attribute to all image tags which has been inserted.

My source XML file looks something like below:

<root>
<content>
This is some text <b>bold</b>
<img src="picture.jpg" img-id="picture.jpg"  />
<br />
Some more text and images
<img src="picture2.jpg" img-id="picture2.jpg"  />
</content>
</root>


When I do an XSL transformation I need to create a HTML page with the content from the content node but to each img tag the result should look something like this (an ekstra attribute usemap is added which is a copy of the img-id:
<img src="picture.jpg" img-id="picture.jpg" usemap=picture.jpg />


How is this possible ?

Thanks in advance

Cheers
John Stubbe
Denmark

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.