[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Parameterized xi:include?
XML catalogs let you change a set of entities at runtime. You can create a file containing all your entities, and reference it with a PUBLIC identifier in the DOCTYPE of all your documents (master and inclusions). Create an XML catalog with an entry to resolve the PUBLIC identifier to the file. When you need a second set of entities, create another file, and a second catalog that directs the same PUBLIC identifier to the new entities file. Then use that second catalog when you process. See this reference for more info: http://www.sagehill.net/docbookxsl/ModularEntities.html Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Justus H. Piater" <Justus.Piater@ULg.ac.be> To: "Gisbert Amm" <gia@webde-ag.de> Cc: <docbook-apps@lists.oasis-open.org> Sent: Friday, January 16, 2004 6:36 AM Subject: Re: [docbook-apps] Parameterized xi:include? Gisbert Amm <gia@webde-ag.de> wrote on Fri, 16 Jan 2004 11:54:09 +0100: >> Say, I have an XML document that contains some content. I want to >> xi:include this document into several other master documents, but with >> slightly customized content in each case. > > I don't know if this works with xi:include the same way as for ordinary XML > documents but for my imagination it should do. If so, my first thought would > be writing entities into the "content document" and define them different in > every "master document". It doesn't work. It always uses the entities as defined in the included document (where they must be defined for the included document to verify separately). -- Justus H. Piater, Ph.D. http://www.montefiore.ulg.ac.be/~piater/ Institut Montefiore, B28 Phone: +32-4-366-2279 Université de Liège, Belgium Fax: +32-4-366-2620 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]