Re: new-document and doc-processing menu behavior

Michael Smith <[email protected]>
Newsgroups gmane.text.refdb.devel
Message-ID <20031210030827.GA1120@theThirdPoliceman>
Bruce D'Arcus <[email protected]> writes:

> 
> On Dec 9, 2003, at 7:16 PM, Markus Hoenicka wrote:
> 
> >Bruce D'Arcus writes:
> >>>Use XInclude's and have RefDB call xsltproc to process those?
> >>
> >>Can RefDB already handle this Markus?  I want to avoid using entities
> >>altogether.
> >
> >I didn't follow this discussion. At which stage of the document
> >processing would this come into play?
> 
> In other words, I want to process citations and bibs for my entire book 
> project, which is assembled via xincludes in a document called 
> book.xml.  They serve the same function as the current entities that 
> specify the chapter files.

It seems like nothing much actually needs to be changed in the RefDB
tool chain to support processing a doc that uses XIncludes.

I think the only toolchain fix needed is to change a couple lines in
refdbxml so that it always calls xsltproc with the "--xinclude" option. 

Then, the docs could just be updated to mention using Xincludes; e.g.,
the tutorial doc would say:

   ... At a location where such a [div or bibliography] element is
   valid, either include the external entity itself or an Xinclude
   element that references the entity, like in the following chunk:

     ..
       </chapter>
       &bibliography;
       </book>

     or 

     ..
       </chapter>
       <xi:include href="&bibliography;" xmlns:xi="http://www.w3.org/2001/XInclude"/>
       </book>

And if you really wanted to do away with the bibliography entity
entirely in an XML doc, you could instead just reference the file name
of the bibliography directly, like this:

  <xi:include href="refdbtest.bib.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>

If you did that, and you're editing in nXML mode, you could also just drop
the document prologue entirely; otherwise, you could, if you wanted to, at
least get rid of the entity declaration in the internal subset.

  --Mike
signature.asc (application/pgp-signature, 155 B)
-----BEGIN PGP SIGNATURE-----

iD8DBQE/1o5WsGCNMsnBsxkRAlXtAJ9Av3GSpGBHVGT/pJNhcpNtDy/QDwCeL9Ex
M7NYnlMLw+e2+zBDLzYFLag=
=jPNO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.