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

RE: Character references and the dreaded d-o-e

Subject: RE: Character references and the dreaded d-o-e
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 14 Nov 2006 22:17:03 -0000
RE:  Character references and the dreaded d-o-e

<xsl:output method="text"/>

(You give the impression you are already doing this, but if you are, then
XML escaping should never appear in the output)

Michael Kay

> -----Original Message-----
> From: Brian Martinez [mailto:Brian.Martinez@xxxxxxxxxxxx]
> Sent: 14 November 2006 22:10
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Character references and the dreaded d-o-e
> I have what I think is a very simple XSLT 1 question, but I
> can't recall the best way to solve it.
> We have the following value in the database: AT&T
> Which gets serialized as
> <result_set>
>   <vendor_name>AT&amp;T</vendor_name>
> </result_set>
> My stylesheet is set to output text, and doing
> <xsl:value-of select="/result_set/vendor_name"/>
> Returns AT&amp;T
> Even though I'm producing plain text, the only workaround I'm
> aware of is to change the output to XML and use d-o-e on the
> value-of element to get the desired result (AT&T).  But I
> can't help but think there are unwanted side effects to this,
> and that there might be a better way (perhaps using string
> replacement?).  Any other suggestions?
> Thanks,
> b.
> Brian Martinez
> Engineer/Developer
> Vercuity
> 5889 Greenwood Plaza Blvd., Ste 300
> Greenwood Village, CO  80111
> 303.218.5246 office
> 303.218.5301 fax
> 720.233.4966 mobile
> http://www.vercuity.com

Current Thread


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.
First Name
Last Name
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.