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

Re: arabic data in xsl

Subject: Re: arabic data in xsl
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 3 Oct 2002 12:32:16 +0100
david in arabic
] I have an xml like...
] 
] <?xml version="1.0" encoding="ISO-8859-1"?>
] <?xml-stylesheet type="text/xsl" href="arab.xsl"?>
] <IBS>
] &amp;#x0621;&amp;#x0622;&amp;#x0623;&amp;#x0624;&amp;#x0625;&amp;#x0626;&amp;] #x0627;
] </IBS>

That is your problem, what application is producing this XML?

I assume that the intention is that  &amp;#x0621; is a reference to
unicode character hex 622 but it is not, it is just the 8 charcaters
 "&" "#" "x" "0" "6" "2" "1" ";"
You  wouldbe in much better shape if your incoming XML looked like

I have an xml like...

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="arab.xsl"?>
<IBS>
&#x0621;&#x0622;&#x0623;&#x0624;&#x0625;&#x0626;&#x0627;
</IBS>

If necessary pass the document through

sed -e "s/&amp;/&/g" before passing to XSLT.


> How do i get arabic data inside the text??? Why is this happening?
You are getting ascii text "&" "#" "x" "0" "6" "2" "1" ";" output
because that is what you are putting in the input.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.