[plexippus-xpath-devel] How to output un-escaped content using extension functions?
Andrei Stebakov
lispercat at gmail.com
Wed Jan 12 20:24:48 UTC 2011
If you execute the sample below:
(progn
(xpath::define-extension func "http://www.test.com/func")
(xpath::define-xpath-function/eager func test-func (arg1 arg2)
(concatenate 'string "<content>" arg1 " " arg2 "</content>"))
(xuriella:apply-stylesheet
"<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:func='http://www.test.com/func'
version='1.0'>
<xsl:template match='/'>
<xsl:value-of select='func:test-func(\"one\", \"two\")' />
</xsl:template>
</xsl:stylesheet>"
"<test-input/>"))
It'll give you
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<content>one two</content>"
What can I do to prevent <content> tag from being escaped?
Thank you,
Andrei
More information about the plexippus-xpath-devel
mailing list