[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] how to ignore a xml tag
Hello, Le jeu 15/04/2004 à 10:09, Ole Turvoll a écrit : > Hi I am wanting to document the contents of a xml file using the > programlisting tag, however when I try to process the file it does not > ignore the tags from the xml file. Is there anyway of resolving this? > > Ie a tag i can specify to ignore it? > > in xml file: > ... > <programlisting> > <setting> > <server name="identifier" hostname="fqdn" port="3000"> > <server name="identifier" hostname="fqdn" port="3300"> > </settings> > <programlisting> You must either excape the characters that trigger parsing: <programlisting> <setting> <server name="identifier" hostname="fqdn" port="3000"> <server name="identifier" hostname="fqdn" port="3300"> </settings> <programlisting> Or enclose the code in a CDATA section: <programlisting><![CDATA[ <setting> <server name="identifier" hostname="fqdn" port="3000"> <server name="identifier" hostname="fqdn" port="3300"> </settings> ]]><programlisting> Camille. > ... > prompt output: > > Ole@aquavit:~/src/rrd/docs/sections> db2pdf LDAPMonitoring.sgml > tex output file name is LDAPMonitoring.tex > openjade:amendXML.sgml:14:15:E: document type does not allow element > "PROGRAMLISTING" here; missing one of "FOOTNOTE", "MSGTEXT" start-tag > openjade:amendXML.sgml:15:8:E: element "SETTING" undefined > openjade:amendXML.sgml:16:15:E: there is no attribute "NAME" > openjade:amendXML.sgml:16:37:E: there is no attribute "HOSTNAME" > openjade:amendXML.sgml:16:49:E: there is no attribute "PORT" > openjade:amendXML.sgml:16:55:E: element "SERVER" undefined > openjade:amendXML.sgml:17:55:E: element "SERVER" undefined > openjade:amendXML.sgml:18:10:E: end tag for element "SETTINGS" which is > not open > openjade:amendXML.sgml:38:10:E: end tag for "PROGRAMLISTING" omitted, but > its declaration does not permit this > openjade:amendXML.sgml:14:0: start tag was here > openjade:amendXML.sgml:38:10:E: end tag for "PROGRAMLISTING" omitted, but > its declaration does not permit this > openjade:amendXML.sgml:13:4: start tag was here > openjade:/usr/share/sgml/docbook/docbook-toys/suse-both.dsl:30:0:E: cannot > open "/home/ole/src/private/suse-print.dsl" (No such file or directory) > openjade:/usr/share/sgml/docbook/docbook-toys/suse-both.dsl:90:0:E: cannot > open "/home/ole/src/private/suse-html.dsl" (No such file or directory) > > Cheers, > > Ole > -------------------------------- > http://gd.db.com/iam/ole.turvoll@db.com > > To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]