[Xsltforms-support] XForm fail in IE6 fails with comments with I18N characters (and XPath handling
Brought to you by:
alain-couthures
From: Kostis A. <ank...@gm...> - 2010-04-07 19:18:56
|
2 problems: 1) A xform with comments containing non-ASCII UTF-8 characters (greek for instance) prevents the xform from compiling in IE6 (currently cannot try ie 7 & 8). 2) In another similar issue in IE (6 & 7, 8 not tested), i found problems when XPath handles text containing non-ASCII chars, resulting into html-escaped-entities presented into the user. I can work-arround these issues by avoiding placing I18N text directly into XPath expressions, and entering them into instance-doc nodes instead. Both problems reported against rev383, IE6 (not tested with IE 7 & 8) I apologize for not attempting to investigate when this issue was firstly introduced. The next 2 xforms, demonstrate both problems. (Note that they contain greek characters, so they must be copied verbatim from the mail text or use the attached ones) file: commentsWithI18N.xml -------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="xsltforms/xsltforms.xsl" encoding="UTF-8" type="text/xsl"?> <html lang="el" xml:lang="el" xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.w3.org/2002/xforms http://www.w3.org/MarkUp/Forms/2007/XForms-11-Schema.xsd http://www.w3.org/2001/xml-events http://www.w3.org/MarkUp/SCHEMA/xml-events-attribs-1.xsd " > <head> <title>Comments with I18N</title> <xf:model id="model-main" > <xf:instance id="inst-doc" > <doc> <text> Some Text </text> </doc> </xf:instance> </xf:model> </head> <body> <!-- WARN: Due to the next comment, form fails on IE6. Not tested on ie 7 & 8. --> <!-- Καλημέρα! --> <xf:output value="text" /> </body> </html> file: xpathWithI18N.xml ----------------------------------- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="xsltforms/xsltforms.xsl" encoding="UTF-8" type="text/xsl"?> <html lang="el" xml:lang="el" xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.w3.org/2002/xforms http://www.w3.org/MarkUp/Forms/2007/XForms-11-Schema.xsd http://www.w3.org/2001/xml-events http://www.w3.org/MarkUp/SCHEMA/xml-events-attribs-1.xsd " > <head> <title>XPath with I18N</title> <xf:model> <xf:instance> <root> <text>is non-translatable!</text> </root> </xf:instance> </xf:model> </head> <body> <xf:output value="concat('Φιλότιμο ', /root/text)" > <xf:label>The next I18N text fails(showing html-entities) on IE6: </xf:label> </xf:output> <xf:trigger> <xf:label>xf:setvalue with I18n msg fails also in IE6!</xf:label> <xf:setvalue ev:event="DOMActivate" ref="/root/text">δεν μεταφράζεται!</xf:setvalue> </xf:trigger> </body> </html> Regards, Kostis |