This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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 |

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]