xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Character references and the dreaded d-o-e


Subject: [xsl] Character references and the dreaded d-o-e
From: "Brian Martinez" <Brian.Martinez@xxxxxxxxxxxx>
Date: Tue, 14 Nov 2006 16:10:09 -0600

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor