This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]