Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 493 Hint about preprocessing modular DocBook (Ch. 4) #495

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/guide/xml/ch04.xml
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,13 @@ attribute to the root element (if it doesn’t already have one).</para>
If it isn’t preserved, relative references to other documents will be resolved against
the static base URI of the stylesheet and not the URI of the original document. That’s
unlikely to be correct.</para>
<para>You must also take into account that no XInclude processing has taken place at this time.
If you are using modular DocBook, the <parameter>transform-original</parameter> pipeline is usually a bad choice,
because it only operates on the root document, but not on the fragments referenced by XInclude.
If it is absolutely necessary to use a <parameter>transform-original</parameter> pipeline together with modular DocBook,
you can use Saxons <code>-x</code> switch to enable XInclude when parsing the document (see <xref linkend="java-main" xrefstyle="%label"/>).
Otherwise, however, the transform-before pipeline is usually the better choice
for modular DocBook documents<indexterm><primary>Modular DocBook</primary><secondary>processing pipelines</secondary></indexterm>.</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
Loading