Escaping markup, preserving contents in XProc

Hi, Don't ask why I'm doing this; I'd rather not say. :-) Running this XProc: <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0"> <p:serialization port="result" method="text"/> <p:input port="source"> <p:inline> <doc>Hello bullet: •</doc> </p:inline> </p:input> <p:output port="result"/> <p:wrap name="wrap" match="/" wrapper="wrapper"/> <p:escape-markup name="escape-wrapped-contents"/> </p:declare-step> I am getting: <doc>Hello bullet: •</doc> As you can imagine, I'd like to see an honest bullet (U-2022) in the results. By commenting out the 'escape-markup' step I can see my bullet makes it through to that point. I am using Calabash inside oXygen 15.2. What am I doing wrong? Any hints? Cheers, Wendell Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^

Hi Wendell, this works for me both with p:escape-markup and without when I’m running Calabash 1.0.13 and 1.0.16 standalone (Saxon 9.4). The version that’s bundled with oXygen 15.1 seems to be 1.0.13. I don’t know what’s bundled with oXygen 15.2. Wait – did you say 15.2? With 15.1, I get the same results as you, i.e., a mangled bullet for p:escape-markup. It seems as if the assumed encoding for the results window is incorrect in oXygen. Gerrit On 20.01.2014 21:25, Wendell Piez wrote:
Hi,
Don't ask why I'm doing this; I'd rather not say. :-)
Running this XProc:
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
<p:serialization port="result" method="text"/>
<p:input port="source"> <p:inline> <doc>Hello bullet: •</doc> </p:inline> </p:input>
<p:output port="result"/>
<p:wrap name="wrap" match="/" wrapper="wrapper"/>
<p:escape-markup name="escape-wrapped-contents"/>
</p:declare-step>
I am getting:
<doc>Hello bullet: •</doc>
As you can imagine, I'd like to see an honest bullet (U-2022) in the results.
By commenting out the 'escape-markup' step I can see my bullet makes it through to that point.
I am using Calabash inside oXygen 15.2.
What am I doing wrong? Any hints?
Cheers, Wendell
Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^ _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vöckler
participants (2)
-
Imsieke, Gerrit, le-tex
-
Wendell Piez