xsltforms icon indicating copy to clipboard operation
xsltforms copied to clipboard

Using double apostrophe to espacing

Open rysi3k opened this issue 10 years ago • 1 comments

Hello @AlainCouthures I have xform which is generated and it uses double apostrophes to espace apostrophe. I have done some research about it, and it looks like that is proper literal in XPath 2.0 http://www.w3.org/TR/xpath20/#id-literals http://stackoverflow.com/questions/2887281/escape-single-quote-in-xslt-concat-function

Now i have code like that:

<xf:input ref="xxf:evaluate(concat('instance(''my-instance'')/document', my-xpath))">
<xf:label>...</xf:label>
</xf:input>

and this is inpossible to parse properly in XSLTForms. Could you please look in it? Or give me some advices how to parse it?

Greetings

rysi3k avatar Apr 22 '15 13:04 rysi3k

Escaping apostrophes and quotes in strings is not an XPath 1.0 feature and XSLTForms is currently integrating an XPath 1.0 only engine with some XPath 2.0+ functions. But it is clearly one of the XPath 2.0+ goodies that can be supported as an extension in XSLTForms XPath parser (written in XSLT 1.0). Please give a try to latest build!

AlainCouthures avatar Apr 23 '15 19:04 AlainCouthures