This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: < in saxon
- To: "Kunath, Marcel" <kunathma at ais dot msu dot edu>,"docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: < in saxon
- From: Jirka Kosek <jirka at kosek dot cz>
- Date: Tue, 29 May 2001 17:40:40 +0200
- References: <17F0EC17EF87D311BF65009027D3C39D01FC8CAA@ais.msu.edu>
"Kunath, Marcel" wrote:
> java com.icl.saxon.StyleSheet -o index.html mydoc.xml
> ..\emacs\sgml\stylesheets\dbx129\docbook\html\docbook.xsl
> Fatal error reported by XML parser: name expected (found " ")
> URL: file:mydoc.xml
> Line: 150
> Column: 42
> Error
> org.xml.sax.SAXParseException: name expected (found " "): name expected
> (found
> " ")
> Transformation failed
>
> It's the in/output feed character (<). How do I make this work? Bug in
> saxon?
No, it is bug in your XML code. You must escape this character by entity
reference <. If you have longer code with lots of < and &, you can
surround it by CDATA section:
<para><screen><![CDATA[
C:\bootcd1> mkisofs.exe -N -l -no-iso-translate
-relaxed-filenames -v -o C:\cd.iso disk1
C:\bootcd1> mkbootcd.exe C:\cd.iso - <
mkbootcd.txt]]></screen></para> (<---line 150)
</listitem>
</orderedlist>
</sect1>
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org