[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] can anyone recommend a more/better "marked up"form of...
>Unfortunately, I compose my master document from several files that >are xi:included. Since the linkend attribute of biblioref and he same >attribute of xref uses the ref/idref scheme for validation, I am >unable to use biblioref and xref for citations unless I am inside my >Bibliography.xml document. > >Does olink have any functionality similar to that of endterm for xref? > Chris I also compose my master document from several files that are xi:included. This is the way I use biblioref - it works from all included files, not just the main driver file. Hope this helps Ron main document driver file ------------------------- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <article id="article" lang="EN" > <title> The Title of the Article </title> <parThis is a reference to an item in the bibliography <biblioref linkend="ANDERSON69"/> via a bibliomixed in the file bib.xml which is Xincluded in this file. The bibliomixed entry in bib.xml points to a full bibliograhy reference in the file full_bib.xml. The pointing achieved in a customization layer by <xsl:param name="bibliography.collection" select="'/path/to/full_bib.xml'" /></para> ... <xi:include href="bib.xml" xmlns:xi="http://www.w3.org/2001/XInclude" > <xi:fallback> <para><emphasis> MISSING INCLUDE FILE AT LOCATION - bib.xml </emphasis></para> </xi:fallback> </xi:include> </article> file bib.xml ------------ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <bibliography id="article_bib" lang="EN" > <title> References </title> <bibliomixed id="ANDERSON69" /> <bibliomixed id="..." /> ... </bibliography> file full_bib.xml ----------------- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <bibliography id="full_bib" lang="EN" > <title> References </title> <!-- reference to a whole book --> <biblioentry id="ANDERSON69"> <abbrev>ANDERSON69</abbrev> <biblioset relation="book"> <!-- author(s) --> <editor> <firstname>J</firstname> <othername role="middle" >J</othername> <surname>Anderson</surname> </editor> <!-- title of book --> <title>Patience</title> <pubdate>(1969)</pubdate> <!-- publisher of book --> <publisher> <publishername>Manchester University Press</publishername> <address>Barnes & Noble, New York</address> </publisher> </biblioset> </biblioentry> ... </bibliography> In your customization layer you need ------------------------------------ ?xsl version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" > <!-- import the standard docbook.xsl stylesheet --> <xsl:import href="/Applications/Utilities/oxygen/7.2/oxygen/frameworks/docbook/xsl/fo/docbook.xsl" /> ... <!-- bibliography database --> <xsl:param name="bibliography.collection" select="'/path/to/full_bib.xml'" /> ... </xsl:stylesheet > -- Ron Catterall, Phd, DSc email: ron@catterall.net Prolongacion de Hidalgo 140 http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821 Oaxaca 68020 Mexico fax: +1 530 348 8309
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]