p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

xslt thread: Outputting HTML tags from XML elements

Message #1 by beley@a... on Wed, 12 Jun 2002 15:10:56
Thank you very much, works great!  (unfortunately the creation of XML is
out of my hands, I can only display what is there)

-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@n...]
Sent: Wednesday, June 12, 2002 11:31 AM
Subject: [xslt] RE: Outputting HTML tags from XML elements

> my xml element looks like this:
> <element>Please select the &lt;b&gt;user name&lt;b&gt;</element>

Why does it look like this? This is not the way to nest markup!

But you're in luck, the disable-output-escaping option of xsl:value-of
deals with exactly this situation, provided the processor supports it.

Michael Kay

> When I outupt this element in my stylesheet I get:
> Please select the <b>user name</b>
> What i want to output is:
> Please select the user name (where user name is bolded)
> anyone have any ideas?

  Return to Index