Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
p:replace needs update due to new document model #93
Currently the specs say:
Since with XProc 3.0 we switched to XDM document, the notion of a "document element" does not make sense any more.
I therefor propose,
Could you please give me a GO / NON-GO before I start changing the prose.
First, “Every node in the primary input matching the specified pattern is replaced in the output is replaced” seems to have a superfluous “is replaced” in it. Not sure which to remove.
Then I’d suggest to replace “document element” with “top-level node(s)”.
I was wondering whether we should say “text or element node(s)” or any node(s). For example, should
<p:replace match="/model"> <p:with-input port="source"> <p:inline> <model/> <doc>…</doc> </p:inline> </p:with-input> <p:with-input port="replacement"> <p:inline> <?xml-model …?> </p:inline> </p:with-input>
And if the top-level node(s) of the source document are matched, should the result document carry the document properties of the replacement?