Hi Christian --
I was after a better, or at least less convoluted, way to add the UID
attribute nodes. Your code snippet works in place, and faster; thank you!
If anyone happens to have a good general case structure-but-not-position
document compare algorithm lying around, I'd be delighted to
> Is there a better way to do this?
Your query could probably be shortened as follows:
let $new := db:open($newName) update {
.//* ! (insert node attribute UID { generate-id() } into .)
}
...
It does the same as your original query. But maybe you were asking for
a better solution to
HI --
In the process of trying to find the differences between two collections of
schemas (the XML differences, as opposed to the not-semantically-meaningful
differences in the order of the definitions), I find myself wanting to
stick UIDs on everything. (So I can go "oh, this element node is
3 matches
Mail list logo