List Info

Thread: Polymorphic Modular DocBook




Polymorphic Modular DocBook
user name
2006-06-25 12:44:52
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

thanks a lot for your input, it's all been very useful.

Camille.

Bob Stayton a écrit :
> [I'm moving this thread over to the docbook-apps list
where such
> applications should be discussed]
> 
> Yes, it is possible to do this with the right XInclude
processor. This
> example in my book:
> 
> 
http://www.sagehill.net/docbookxsl/DuplicateIDs.html
> 
> shows how to include the content of a section without
including its
> section wrapper, in this case to avoid a duplicate id,
but you could use
> the same xpointer() syntax with a chapter.
> 
> <appendix>
>  <xi:include href="modules/chapter1.xml"
> xpointer="xpointer(/chapter/node())"
> xmlnsi=&q
uot;http://www.w3.org/200
1/XInclude"/>
> </appendix>
> 
> I replaced "*" with "node()"
here to preserve processing instructions,
> comments, and text.  This method works with xsltproc,
but the Xerces
> XInclude processor does not handle the xpointer()
scheme.  If you are
> using a Java XSLT processor, you could use xmllint
--xinclude as a
> preprocessor step to resolve XIncludes before feeding
the result to Saxon.
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobssagehill.net
> 
> 
> ----- Original Message ----- From: "Camille
Bégnis" <camilleneodoc.biz>
> To: "docbooklist" <docbooklists.oasis-open.org>
> Sent: Thursday, June 22, 2006 5:15 AM
> Subject: [docbook] Polymorphic Modular DocBook
> 
> 
> Hi all,
> 
> I used big words in the subject, but it's a simple
issue: When doing
> modular DocBook, it sometimes happen that a
"chapter" module wants to be
> reused as an "appendix" for example...
> 
> Is the only solution to use tinier modules by chunking
at the "section"
> level, or is there something more intelligent?
> 
> Or should we consider DocBook is not meant to be
extremely modular,
> other grammars like DITA are more suited?
> 
> Interested in hearing your experience.
> 
> Camille.
>>

>
------------------------------------------------------------
--------------------



-
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFEnoVEjv9P65BfOUMRAqgFAJ9112h/+N5tAEvg+5xsb+0FUc9RpACd
F9u+
IoicWlBY7ZiypNU6FBe2Vu4=
=yZnv
-----END PGP SIGNATURE-----
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )