OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Internal entities


Hi,
Your sample files work ok for me.  When I process your chapter file that
XIncludes the article, the entities are properly expanded in the output.

What version of xsltproc are you using?  I'm using:

$ xsltproc --version
Using libxml 20605, libxslt 10102 and libexslt 802
xsltproc was compiled against libxml 20604, libxslt 10102 and libexslt 802
libxslt 10102 was compiled against libxml 20604
libexslt 802 was compiled against libxml 20604

BTW, I'm presuming your DTD customization expands the chapter content model
to include article, since normally article is only permitted in book and
part elements.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Leticia Thorell" <LeticiaT@invera.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, April 30, 2004 6:31 AM
Subject: [docbook-apps] Internal entities


Hi

When generating standalone articles, the internal entities I have declared
worked fine. However, for the book (with xinclude), they don't. I get a
blank...

Here's what I have:

Article:

<!DOCTYPE article PUBLIC "-//INVERA//DTD DocBook XML V4.2-Extension//EN"
"http://our.local.docbook.dtd"; [
<!ENTITY DISTRO "Our DocBook">
<!ENTITY DG "&DISTRO; Documentation  Guide">
]>
<article id="ch-xml-tags">
<title>OurDocBook Tags</title>
<articleinfo>
<revhistory>
....
</article>

Chapter:

<!DOCTYPE chapter PUBLIC "-//INVERA//DTD DocBook XML V4.2-Extension//EN"
"http://our.local.docbook.dtd";>
<chapter id="our-docbook">
<title>OurDocBook Document Type</title>
<para>OurDocbook is a an extension of the DocBook DTD. The following
articles describe document
tags and structure of OurDocBook document type.</para>
<xi:include href="tags-reference.xml"
xmlns:xi="http://www.w3.org/2003/XInclude"/>
</chapter>

To generate standalone articles:
xsltproc --output $@ $(XSLARTICLES) $<

To generate the book:
xsltproc --xinclude --param base.dir "'$(dir $@)'" --param home.dir
"'$(HOME)'" $(XSLBOOKS) $<

Any ideas?

Thanks.

L.T.


****************************************************************************

This e-mail may be privileged and/or confidential, and the sender does not
waive any related rights and obligations. Any distribution, use or copying
of this e-mail or the information it contains by other than an intended
recipient is unauthorized. If you received this e-mail in error, please
advise me (by return e-mail or otherwise) immediately.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux
droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou
copie de ce message ou des renseignements qu'il contient par une personne
autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez
ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de
courriel ou par un autre moyen.

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]