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

How to parse user input?

Subject: How to parse user input?
From: "Tiffany Blake" <Tiffany_Blake@xxxxxxx>
Date: Mon, 3 Jan 2005 14:14:52 -0800
parse dynamic images
i have an xml file where the user inputs content, but the xml automatically
embeds paragraph tags around the content.

	<p>this is what the user inputs</p>

then when my presentation file transforms it, an extra pair of paragraph tags
is generated as a result, which causes the gif file to appear on a separate
line:

	<p class="last"><p>this is what the user inputs</p><img
src="images/arrowRight.gif" alt="" width="8" height="8" title=""></p>

xsl used:

<p class="last"><xsl:apply-templates select="user_input"/>
		<img src="/public/images/arrowRight.gif" alt="" width="8" height="8"
title=""></img>
</p>

how do i parse the only text the user input, stripping the <p> tags to get the
desired result?  do i then need to concatenate with the gif file?

desired result:

	<p class="last">this is what the user inputs<img src="images/arrowRight.gif"
alt="" width="8" height="8" title=""></p>

thanks for your help,
tiffany_blake@xxxxxxx

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.