Subject: RE: [xsl] Best way to include code samples From: "Larry Garfield" <lgarfiel@xxxxxxxxxxxxxxxxxxx> Date: Thu, 16 Aug 2001 14:19:12 -0500 |
> -----Original Message----- > I still intend to get it working. Please let me know > what you end up doing. > > Mark It turns out that CDATA did what I needed it to do. What I ended up with was this: <para role="pre"><![CDATA[<smallscreenignore> <img src="bigpic.gif" height="600" width="450" /> </smallscreenignore>]]></para> (The file is conforming DocBook.) The CDATA ends up escaping everything inside it, which is good. Then my XSLT script catches <para> and turns it into <p>, but turns <para role="pre"> into <pre>. So the final output is: <pre><smallscreenignore> <img src="bigpic.gif" height="600" width="450" /> </smallscreenignore></pre> Which is exactly what I needed. I'm still going to look through the examples you and others suggested when I get the chance, just for educational purposes. --Larry Garfield XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Best way to include code , Mark Miller | Thread | RE: [xsl] Best way to include code , Evan Lenz |
[xsl] Re: Re: ?XSLT Repository?, Dimitre Novatchev | Date | [xsl] Re: Re: creating a string of , Dimitre Novatchev |
Month |