Subject: [xsl] Selectively Applying use-character-maps From: Tony Nassar <tnassar@xxxxxxxxxxxx> Date: Sun, 27 Feb 2011 08:48:38 -0800 |
As far as I can tell from XSLT 2.0 specification, there's no way to serialize text now as Latin, now as Devanagari. Is that correct? Unfortunately the samples I have aren't distributable, so I hope this example will do. Let's say I have some XML like this: <document> <paragraph>Hello, world!</paragraph> <paragraph font="Kruti">poiuiertpoi%&(*</paragraph> </document> Kruti is a pre-Unicode mapping of single bytes to Devanagari characters. I need to map the bytes above (which are the same as the values used in the ASCII encoding of Latin characters) to Devanagari characters when, and only when, @font eq 'Kruti'. Clearly, I can write an XSLT 2.0 function to get the code points for paragraph[@font eq 'Kruti'] and map them to the UTF-16 values myself. Is there any easier way to do this? Tony Nassar Ph.D. Palantir Technologies | Forward Deployed Engineer tnassar@xxxxxxxxxxxxxxxx | 650-387-6502 | Pager 888-913-2793
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] RE: Inline Blocks?, Tony Graham | Thread | Re: [xsl] Selectively Applying use-, Wolfgang Laun |
[xsl] RE: Inline Blocks?, Kevin Brown | Date | Re: [xsl] Selectively Applying use-, Wolfgang Laun |
Month |