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

Attempt to clarify transform-before vs transform original #527

Merged
merged 1 commit into from
Oct 11, 2024
Merged
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
10 changes: 8 additions & 2 deletions src/guide/xml/ch04.xml
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,14 @@ document using three parameters:</para>
<varlistentry>
<term><parameter>transform-original</parameter></term>
<listitem>
<para>This transform runs before step <xref linkend="step-first-00-transform"/> in the standard transformations.
If this transformation is used, it must take special care to preserve the
<para>This transform runs before step <xref linkend="step-first-00-transform"/>
in the standard transformations. Note that this is before XInclude processing, before
transclusion, before any other processing. If you need to make a change to the
original input document, this is where you can do it, but for preprocessing
“the XML document that will be transformed”, the <parameter>transform-before</parameter>
parameter is likely to be a better choice.</para>

<para>If this transformation is used, it must take special care to preserve the
base URI of the original document by adding an <tag class="attribute">xml:base</tag>
attribute to the root element (if it doesn’t already have one).</para>
<para>Only the first transformation in the list has access to the original base URI.
Expand Down
Loading