[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] images and captions
hi all. I am using a product called YAWC to allow users to enter news releases into Word and then export them into XML. Everything is going ok except for images and their captions. Because of the way the images and their captions get exported, there is no link between them. In the resulting xml doc I get from the export from Word, they look like this: <p><img src="C:\Documents and Settings\nshaw.HQIRMS\My Documents\genericpics\ISS\transhub.jpg" height="120.75" width="156.75"/></p> <caption>Picture of the ISS TransHAB.</caption> What I do is take that xml and transform it into another xml doc that I can work with a bit easier before transforming it into html, txt and pdf. So, my question is, how can I, in XSLT, shove the caption into my Media tag (<Media type="image" file="transhub.jpg" alt="Picture of the ISS TransHAB" />) without having any direct link between the two elements? The <caption> element will most likely follow the <img> element, but that is not always the case. It may be above it in some cases. Not every img will have a caption. Ideas? Thanks, --Nathan __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|