|
Subject:
|
Character Mapping
|
|
Posted By:
|
muki
|
Post Date:
|
11/9/2005 8:43:17 PM
|
I'm having trouble with the creation of character maps. I want to use the <xsl:output-character string="&sbreve;" character="#x0073;#x0306;"/> but the processor sends error that says character attribute must be single XML character. I guess it is because I am trying to map one entity to two unicode values. Is there a way I can resolve this?
|
|
Reply By:
|
mhkay
|
Reply Date:
|
11/10/2005 6:47:48 PM
|
It looks to me as if you are trying to replace a decomposed Unicode character with the composed equivalent. Try setting the xsl:output option normalization-form="NFC"
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|
|
Reply By:
|
muki
|
Reply Date:
|
11/11/2005 2:11:42 AM
|
Sorry for the undetailed question of mine, what I really want to achieve is in my source file, I have entities (declared in a dtd file) that should not be converted to its real character when stylesheet is applied including the entities that have more than one unicode values, so what I did as I have said, used the character mapping but had problems with the error that says character attribute must be single XML character. So as a solution I deleted the entities in my character mapping and used a function that replaces these entities. But then again I failed. Can't seem to work it out... I have a question in the forum regarding my problem in the replacement function, please help me. Thanks.
|