Lol... Ok... I had similar issues and one way I solved this issue is by just 
wrapping that content in a special custom tag.  In the last XSLT I matched on 
that tag and used disable-output-escaping.


http://robbypelssers.blogspot.nl/2009/06/escaping-html-with-xslt.html


Let's see if that's worth a beer ;-)

Cheers,
Robby

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, November 14, 2012 5:03 PM
To: users@cocoon.apache.org
Subject: Re: Trouble with disable-output-escaping

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robby,

On 11/13/12 1:41 PM, Robby Pelssers wrote:
> Allright...
> 
> You should reminder this tip.  It will only work if you do this in the 
> very last transformer right before calling the serializer.

Okay, since I have a number of transform operations, I'll have to do some fancy 
footwork. Would this work?

> <map:match pattern="foo.html"> <map:generate src="source.xml" />
> 
> <map:transform src="generate-cincludes-1.xsl" />
> 
> <map:transform src="generate-cincludes-2.xsl" />
> 
> <map:transform type="cinclude" />
> 
> <!-- this is the XSL I'm working with: --> <map:transform 
> src="the-transformer-in-question.xsl" />

In the above XSL, add an attribute (or element) to the text I want to un-escape.

> <map:transform type="cinclude" label="content" />
> 
> <map:transform type="i18n" /> <map:transform src="strip-namespace.xsl" 
> />

Here, I could modify the strip-namespace.xsl to also find anything wrapped in 
the special un-escapify element (or with a similar
attribute) and use disable-output-escaping="yes" here?

> <map:serialize type="xhtml" /> </map:match>

> You owe me a beer ;-)

Not quite yet: I haven't got this sorted, yet. I'll buy you one if you are 
going to attend ApacheCon NA 2013.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCjwM8ACgkQ9CaO5/Lv0PBIkwCcC6NGOvLl1Qc15mrZDMk5iuGg
noQAn0MFKEzBAcXNu63J1MXHGp7Kwths
=kyBO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


Reply via email to