This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Fri, 2003-06-13 at 17:28, Bob Stayton wrote:
> 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
The following is the relevant snippet from the html source that is
generated
<div class="section" lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name="d0e4168"></a>B.1.1. generic-dn-request.dtd
</h3>
</div>
</div>
<div></div>
</div>
<pre class="programlisting"></pre>
</div>
Whereas if I use a fileref then the <pre> element is populated with the respective source code.
--
Rob Exley
Senior Technical Consultant
Equifax Plc
e-mail: rob.exley@equifax.com
tel: 01274 759610
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |