Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace <p> at a specified position in XSLT

Status
Not open for further replies.

anili98

Programmer
May 4, 2004
2
US
We are getting XML that has both text and impages as below. What is the best way to read the images and insert them at a <p> tag in the text, position mentioned by the image attribute? Appreciate any help.

Ex:

<txtbody>
<p>paragraph1</p><p>paragraph2</p><p>paragraph3</p>
</txtbody>

<image>
<image_url><image_orig_url><image_caption>2006 Lexus GS1</image_caption>
<width>100</width>
<position>0</position>
</image>
<image>
<image_url><image_orig_url><image_caption>2006 Lexus GS2</image_caption>
<width>100</width>
<position>1</position>
</image>
<image>
<image_url><image_orig_url><image_caption>2006 Lexus GS3</image_caption>
<width>100</width>
<position>2</position>
</image>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top