This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Repost: ampersand in data
- To: xsl-list at mulberrytech dot com
- Subject: Repost: ampersand in data
- From: John Gethoefer <johng at sportsmvp dot com>
- Date: Fri, 21 Jul 2000 15:07:30 -0700
- References: <3978A55B.CAFDAADD@sportsmvp.com>
- Reply-To: xsl-list at mulberrytech dot com
Actually, I am trying to do this with XSLT and not have to touch the XML
doc.
The XML is a result of data retrieval from an Oracle database with
entries that contain '&' in them.
Rather than process an ereg replace on all of the database results, I
would like to catch it with XSLT.
Is this possible or is the only way to do this by replacing '&' with
& or { ?
-John "avoiding extraneous code" Gethoefer
Carlos Araya wrote:
> John:
>
> Try something like:
>
> <Name>Jack & Jill</Name>
>
> That should work, you may want to also take a look at the
> entities
> supported in XML.
>
> Carlos
John Gethoefer wrote:
> I am trying to transform XML data such as follows:
>
> <Name>Jack & Jill</Name>
>
> however when I use <xsl:value-of "Name"/> it breaks.
>
> Is there a way to transform data that includes "&" using XSLT?
>
> Thanks in advance.
>
> -John
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list