Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2010, 06:52 AM
Authorized User
 
Join Date: Nov 2010
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default How to find entity value

In XML persent hexadecimal value for Quote. The viewer want difference of color for quote (ie opening and closing quote. The entity value for opening and closing quote hexadecimal values are &#x2013 and 2014). how to apply in xsl.


Input XML:

<p>1. In this Order, we adopt the attached Consent Decree entered into between the Enforcement Bureau (&ldquo;Bureau&rdquo;) of the Federal Communications

Output:

<p>1. In this Order, we adopt the attached Consent Decree entered into between the Enforcement Bureau ("Bureau";) of the Federal Communications
 
Old November 25th, 2010, 08:29 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

The XSLT/XPath data model does not have any entities or entity references, there are just text nodes with Unicode characters. If you want to process certain characters and mark them up in a certain way (for instance a color) then, with XSLT 2.0, you could use xsl:analyze-string http://www.w3.org/TR/xslt20/#analyze-string.
Do you use XSLT 2.0?
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
character entity into numeric character entity srkumar XSLT 1 November 22nd, 2007 04:53 AM
Open Word Doc from Access - find, find next save donaldmaloney Access VBA 1 May 25th, 2005 11:09 AM
Difference between Entity and Entity type arshad mahmood C++ Programming 0 May 8th, 2004 12:34 AM
Create a find and a find and replace in VB.NET snowy0 VB How-To 0 January 26th, 2004 07:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.