OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: Representing CDATA sections


/ Beth Fischi <bfischi@broadjump.com> was heard to say:
| Right now, I have everything inside <programlisting> and I've changed all
| the < and > symbols for the elements to &lt; and &gt;. However, I'm working
| in XMetaL, and every time I save the file, all the spacing gets messed up.
| Here's a simplified sample of what I'm talking about:
| 
| <programlisting>

You could try adding "xml:space='preserve'" on this tag. You could
also try something like this:

<programlisting><![CDATA[<name>
<date>
<![CDATA[
    WHERE T1.date like :V1
]]>]]&gt;<![CDATA[
</name>
</date>]]></programlisting>

Ugly, but it should work.

| Any alternate ideas?

If you're using the XSL or DSSSL stylesheets, you could use the
format='linespecific' hack to load the content from an external file.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | It is seldom that any liberty is
http://www.oasis-open.org/docbook/ | lost all at once.--David Hume
Chair, DocBook Technical Committee |


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC