[Home] [By Thread] [By Date] [Recent Entries]
George Cristian Bina wrote:
Hi Colin, That'd be way too much trouble for a simple workaround. The PUA characters (U+E000 - U+F8FF), or the 15th / 16th plane (U+F0000 - U+FFFFF and U+100000 - U+10FFFF) should (?) be used for such purposes. To make the code more readable, I usually use one DTD include that contains my own private characters as entities. I.e.: <!-- inside DTD --> <!ENTITY empty_string ""> <!-- in xslt stylesheet --> <xsl:character-map name="use-empty"> <xsl:output-character character="&empty_string;" string="" /> </xsl:character> PUA characters are meant for private use only and are guaranteed to never be assigned any Unicode character, which makes them ideal for this type of workarounds. Of course, there still is a slight chance that your input contains these PUA characters, but I reckon that more often than not, this is known beforehand and you can choose your characters wisely. -- Abel
|

Cart



