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

Re: Help: decimal entity convert to character entity"

Subject: Re: Help: decimal entity convert to character entity" throughout XSLT-2.0
From: Selva Ganesh <selvaganesh1985@xxxxxxxxx>
Date: Wed, 6 May 2009 14:15:18 +0530
 Re: Help: decimal entity convert to character entity"
Hi Wendell,



Thanks for replay



In my requirement is xhtml to xml.



I have the xhtml document is having decimal entity (&#____;), I want
the output xml file is character entity (&____;)



Here I example one entity,



Input file entity: &#8212;


Output file entiy: &mdash;



That why am asking how to convert the decimal entity convert to
character entity



Thanks,

Selva.

-------------------------------------------------------


Date: Tue, 05 May 2009 13:13:15 -0400
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Subject: Re:  Help: decimal entity convert to character entity"
 throughout XSLT-2.0
Message-ID:<20090505131333.GA73682@xxxxxxxxxxxxxxxxxxxxx>

Selva,

Could you provide us with a small sample of the input and output you want?

Your use of the terminology is not quite correct, which makes it
difficult to understand what you want (and why). In particular, what
do you meant by "[you] want to know the encoding value"?

It could be that what you want is provided by the
string-to-codepoints() function. Or maybe you just need to adjust how
your serializer works. For example,

<hov:output method="xml" encoding="US-ASCII" indent="yes"
omit-xml-declaration="no"/>

... which would skip the character mapping and write US-ASCII results
(in a processor that supported that), forcing the processor to use
numeric character references for any characters not in ASCII.

Cheers,
Wendell

At 11:05 AM 5/5/2009, you wrote:
>Hi Team,
>
>Greeting!
>
>In my question is "decimal entity convert to character entity"
>throughout XSLT-2.0 processor.
>
>I have decimal entity, How to convert character entity
>
>I want know the encoding value.
>
>If have possible to convert without character mapping.
>
>
>I have character mapping, for your reference.
>
>------------------------
><hov:output method="xml" use-character-maps="cm1" encoding="ISO-8859-1"
>indent="yes" omit-xml-declaration="no"></hov:output>
>
><hov:character-map name="cm1">
><hov:output-character character="&#8212;" string="&amp;mdash;"/>
><hov:output-character character="&#8220;" string="&amp;ldquo;"/>
><hov:output-character character="&#8221;" string="&amp;rdquo;"/>
><hov:output-character character="&#8211;" string="&amp;ndash;"/>
><hov:output-character character="&#8217;" string="&amp;apos;"/>
>..
>..
>..
>..
></hov:character-map>
>----------------------------
>
>--
>Best Regards,
>Selvaganesh

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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