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

Re: entities in decimal-format/format-number

Subject: Re: entities in decimal-format/format-number
From: Михаил Сабуренков <allo.superman@xxxxxxxxx>
Date: Wed, 21 Apr 2010 12:23:42 +0400
Re:  entities in decimal-format/format-number
New turn in my case:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
  <xsl:decimal-format name="foo" grouping-separator="&#8201;"/>
  <xsl:template match="/">
    <root>
      <foo>1&#8201;488</foo>
      <bar><xsl:value-of select="format-number(1488,
'#&#8201;###','foo')"/></bar>
    </root>
  </xsl:template>
</xsl:stylesheet>

outputs:

<?xml version="1.0"?>
<root><foo>1b	488</foo><bar>1	o?=	488</bar></root>

So it seems that everything is ok with my console.

On 21 April 2010 12:04, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>> When xsl transformation is done, for a example, in my browser
>> - everything is ok.
>> But when I fire xsltproc via console - it outputs me
>> something corrupted.
>
> It's not xsltproc that's corrupting it, it's your console. If you want to
> output non-ascii characters, then you are going to have to use software
that
> can display them properly on your screen.
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

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.