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

preserving XHTML from XML source

Subject: preserving XHTML from XML source
From: "Zakon, Stuart" <stuart_zakon@xxxxxxxxx>
Date: Tue, 25 May 2004 14:28:44 -0400
embed xhtml in xml
<HTML>
<BODY>
We want to embed some XHTML in an XML source that will be transformed to
XHTML. In particular we want to display messages that have some text bolded.

The XML looks like this
<Messages>
	<Message>Some text <b>with bolding</b> to display.</Message>
	<Message>Another message</Message>
</Messages>

When using Xalan-J under XML Spy, the bolding can be preserved using the
following template:


	<!-- To display summary messages -->
	<xsl:template match="Message">
		<tr>
			<td>
				<xsl:copy-of select="text()|*"/>
			</td>
		</tr>
	</xsl:template>


However, when running under Websphere 5.0, which also uses Xalan-J, the
portion of text inside the <b> </b> tags is not copied to the output, nor
are the tags. The result is:

	<tr>
		<td>Some text to display.</td>
	</tr>

instead of:

	<tr>
		<td>Some text <b>with bolding</b> to display.</td>
	</tr>

Is there a better way to do this?

Stuart Zakon



<P><hr size=1></P>
<P><STRONG>This e-mail message and any attachments contain confidential information from Medco. If you are not the intended recipient, you are hereby notified that disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronic information is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender by reply message and then delete the electronic message and any attachments.</STRONG></P>
</BODY>
</HTML>

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.