Subject: [xsl] images and captions From: Nathan Shaw <n8_shaw@xxxxxxxxx> Date: Tue, 24 Sep 2002 07:24:13 -0700 (PDT) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Variable question: captur, Jarno . Elovirta | Thread | Re: [xsl] images and captions, David Carlisle |
Re: [xsl] hardware xml / xslt, Kevin Jones | Date | Re: [xsl] How do I capture the text, Peter Lavender |
Month |