This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] textobject/textdata for external program code
On Fri, Jun 13, 2003 at 01:54:08PM +0100, Rob Exley wrote:
> Thanks Bob,
>
> unfortunately this doesn't seem to work unless I have done something
> else wrong. I tried changing one of my elements to using an entityref
> and then changing the entity declaration as you suggested but it still
> just gave me blank output for the section in question.
>
> <?xml version="1.0"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
> <!ENTITY generic-dn-request.dtd SYSTEM
> "/home/r_exley/tmp/code/xml/generic-dn-request.dtd" NDATA linespecific>
> <!ENTITY ntg-base-request.ent SYSTEM
> "/home/r_exley/tmp/code/xml/ntg-base-request.ent">
> <!ENTITY dn-base-request.ent SYSTEM
> "/home/r_exley/tmp/code/xml/dn-base-request.ent">
> <!ENTITY dn-person.ent SYSTEM
> "/home/r_exley/tmp/code/xml/dn-person.ent">
> <!ENTITY generic-dn-response.dtd SYSTEM
> "/home/r_exley/tmp/code/xml/generic-dn-response.dtd">
> <!ENTITY ntg-base-response.ent SYSTEM
> "/home/r_exley/tmp/code/xml/ntg-base-response.ent">
> <!ENTITY dn-base-response.ent SYSTEM
> "/home/r_exley/tmp/code/xml/dn-base-response.ent">
> <!ENTITY generic-catalog SYSTEM
> "/home/r_exley/tmp/code/xml/generic-catalog">
> ]>
>
> <book>
> .
> .
> .
> <section>
> <title>generic-dn-request.dtd</title>
> <programlisting><textobject><textdata
> entityref="generic-dn-request.dtd" /></textobject></programlisting>
>
> </section>
>
> <section>
> <title>ntg-base-request.ent</title>
> <programlisting><textobject><textdata
> fileref="/home/r_exley/tmp/code/xml/ntg-base-request.ent"/></textobject></programlisting>
> </section>
I can't tell what is going wrong with your setup. I took
your sample, saved it to a file, changed just the pathname
in the NDATA entity to match a file on my system, and
successfully processed it with this command:
java \
-cp "../docbook-xsl-1.62.1/extensions/saxon651.jar:../saxon652/saxon.jar" \
com.icl.saxon.StyleSheet \
-o entityref.html \
entityref.xml \
../docbook-xsl-1.61.2/html/docbook.xsl \
use.extensions=1
Is the HTML output an empty <PRE>, or is there anything
there at all?
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org