cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Trouble with disable-output-escaping
Date Wed, 14 Nov 2012 16:03:27 GMT
-----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-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message