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

RE: Unicode and child element

Subject: RE: Unicode and child element
From: "Pankaj Chaturvedi" <pankaj.chaturvedi@xxxxxxxxx>
Date: Fri, 29 Aug 2008 16:16:49 +0530
RE:  Unicode and child element
I did it other way around.

Having a bad day. Sorry to bother you guys. 
Please ignore it.
-----Original Message-----
From: Pankaj Chaturvedi [mailto:pankaj.chaturvedi@xxxxxxxxx] 
Sent: Friday, August 29, 2008 4:02 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Unicode and child element

Thanks Ken. But it also doesn't seems to be working. 

Personally I do not have any problem with defining function and would not
like to omit it as I am using it at various places. The only thing which
worrying me is with mode <xsl:apply-templates mode="New-one"/> and without
mode <xsl:apply-templates/>.

I am expecting error here. Let me try it again.


Pankaj Chaturvedi


-----Original Message-----
From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, August 28, 2008 6:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Unicode and child element

I get the impression that you have copied a partial solution to your problem
because only one step is missing, yet the result evidence you present seems
not to match what the code you have would produce.  I'll just focus my
answer on your code and not on your evidence.

At 2008-08-28 17:51 +0530, Pankaj Chaturvedi wrote:
><xsl:function name="my:reverse-string">
>         <xsl:param name="arg"/>
>                 <xsl:sequence
>'\[#x([0-9A-Za-z]+)\]', '&#xE000;#x$1;')"/> </xsl:function>

Okay, the above does *not* put "[#xUUUU]" into the result tree as you

It puts "&#xE000;UUUU;" into the result tree.

I gather you want "&UUUU;" in the serialized version of the result tree.

Using &#xE000; is a typical approach to using output character maps in
serialization to get file results that are not possible using default

>I've done it earlier but seems to be completely lost today (may be tired).

It looks to me like what you probably did was:

   <xsl:output use-character-maps="escape-my-numeric-character-reference"/>

   <xsl:character-map name="escape-my-numeric-character-reference">
     <xsl:output-character character="&#xe000;" string="&amp;"/>

I hope this helps.

. . . . . . . . . . Ken

Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Confidentiality Notice:" This message and any attachment(s) contained here
are information that is confidential, proprietary to IDS Infotech Ltd. and
its customers.
Contents may be privileged or otherwise protected by law. The information is
solely intended for the individual or the entity it is addressed to. If you
are not the intended recipient of this message, you are not authorized to
read, forward, print, retain, copy or disseminate this message or any part
of it. If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer."

Current Thread


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