|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] preserving XHTML from XML source
<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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








