Re: Trouble with disable-output-escaping

Christopher Schultz <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.