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

images and captions

Subject: images and captions
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Tue, 24 Sep 2002 07:24:13 -0700 (PDT)
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


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.