Skip to content

Commit

Permalink
Merge pull request #571 from ndw/iss-563
Browse files Browse the repository at this point in the history
Clarify err:XC0059, add it to p:set-attributes
  • Loading branch information
ndw authored Jun 6, 2024
2 parents dbaac3f + 4edfcf5 commit fd24a7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions steps/src/main/xml/steps/add-attribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ element(s), the <tag>p:set-attributes</tag> step can be used to set them
all at once.</para>
</note>

<para>This step cannot be used to add namespace declarations. <error code="C0059">It is a <glossterm>dynamic error</glossterm> if the QName
value in the <option>attribute-name</option> option uses the prefix
<para>This step cannot be used to add namespace declarations.
<error code="C0059">It is a <glossterm>dynamic error</glossterm> if the QName
value in the <option>attribute-name</option> option is “<code>xmlns</code>” or uses the prefix
“<literal>xmlns</literal>”
or any other prefix that resolves to the namespace name
<uri>http://www.w3.org/2000/xmlns/</uri>.
Expand Down
8 changes: 7 additions & 1 deletion steps/src/main/xml/steps/set-attributes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ with the matching elements' attributes modified.</para>
<option>match</option> option. All matching elements are processed.
If no elements match, the step will not change any elements.</para>

<para>If the attributes taken from the <option>attributes</option> use namespaces,
<para>This step cannot be used to add namespace declarations.
<error code="C0059">It is a <glossterm>dynamic error</glossterm> if the name
of any attribute is “<code>xmlns</code>” or uses the prefix
“<literal>xmlns</literal>”
or any other prefix that resolves to the namespace name
<uri>http://www.w3.org/2000/xmlns/</uri>.</error> However,
if the attributes taken from the <option>attributes</option> use namespaces,
prefixes, or prefixes bound to different namespaces, the document produced on the
<port>result</port> output port will require namespace fixup.</para>

Expand Down

0 comments on commit fd24a7a

Please sign in to comment.