Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Help: decimal entity convert to character entity"

From: Wendell Piez <wapiez@------------.--->
To: xsl-list@-----.------------.---
Date: 5/5/2009 5:14:00 PM
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
>
>--~------------------------------------------------------------------
>XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
>or e-mail: <mailto:xsl-list-unsubscribe@l...>
>--~--


======================================================================
Wendell Piez                            mailto:wapiez@m...
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent