Open gimsieke opened 9 years ago
Would be great to have more defaults. Definitely /*
for p:add-attribute
, p:rename
and p:unwrap
(as you suggest).
For p:string-replace
though /*
will basically always result in a XD0001
error. Something like /*/text()
would be more useful for the simple cases.
In 1.0, only p:insert has a default of '/' for the match attribute, and p:label-elements defaults to . For most other steps with a match option, this option is required and does not have a default value. I find myself using match="/" most of the time, at least with p:add-attribute. Will it harm to make match default to '/' for p:add-attribute and several other steps listed below? The reason is: it reduces verbosity (a bit) without introducing too much arcane magic.
Proposed changes are boldface.