diff --git a/steps/src/main/xml/steps/text-sort.xml b/steps/src/main/xml/steps/text-sort.xml index 1ee7965..8878ccb 100644 --- a/steps/src/main/xml/steps/text-sort.xml +++ b/steps/src/main/xml/steps/text-sort.xml @@ -76,10 +76,13 @@ between that line and a following line that contains no characters.) All lines returned by p:text-sort are terminated with a single newline (
). - The sort process performed by this step is the same as described in - The xsl:sort Element. Options - and are only taken into consideration if no value is selected for option - . + The sort process performed by this step is the same as the process described in + for the + xsl:sort element. + The options + and are considered only if the value + of the option is the empty sequence. + Document properties All document properties are preserved. diff --git a/steps/src/main/xml/steps/xslt.xml b/steps/src/main/xml/steps/xslt.xml index 04128ae..7e78d2d 100644 --- a/steps/src/main/xml/steps/xslt.xml +++ b/steps/src/main/xml/steps/xslt.xml @@ -52,8 +52,8 @@
Invoking an XSLT 3.0 stylesheet - The value of is used as global context item for the - stylesheet invocation. If no value is supplied, the following applies: + The value of is used as the global context item for the + stylesheet invocation. If its value is the empty sequence, the following applies: If there is a single document on the source port, this document will @@ -64,18 +64,28 @@ global context item is absent. + + + As a consequence of these rules, it is not possible for XProc to invoke an XSLT 3.0 stylesheet + with an empty global context item and simultaneously + process a single input document. + + The option is used to control whether all the documents appearing on source port form the default collection for the XSLT transformation. - If no value is supplied for option an “Apply-template + If the value of the option is the empty sequence, an “Apply-template invocation” is performed. The documents that appear on source are taken to be the initial match selection. if is true, they - are also the default collection. If a value is supplied for - the option, - this value is used as the initial-mode for the invocation. It is a - dynamic error if the stylesheet does not support a given mode. - If no value is supplied, nothing is supplied to the invocation, - so the default behaviour defined for XSLT 3.0 could be applied. + are also the default collection. + + If the value of the option is not the + empty sequence, the option value is used as the initial-mode for the + invocation. It is a dynamic error + if the stylesheet does not support a given mode. If the value is + the empty sequence, no initial-mode is specified and default XSLT 3.0 behavior + applies. + If a value is supplied for option a “Call template invocation” is performed. The documents on port source are taken as the default collection in this case. Option is ignored. Option sets the base output URI per XSLT 3.0 specification. If a final result tree is constructed, this URI is used to resolve a relative - URI reference. If no value is supplied for , the base URI of + URI reference. If the value of is the empty sequence, the base URI of the first document in the source port's sequence is used. If no document is supplied on port source the base URI of the document on port stylesheet is used. It is a dynamic error if a document appearing