RE: p:exec -- can it apply to only selected parts of input using a loop?

Hi Alex,

emphatically agreed - the word viewport has always been a mystery to me. 
Always will be. The only way out, for me, is learning it by heart.

I think you are right in caring about names. After all - what the step 
does is simply updating the document, in a way which is simplified by 
identifying target fragments and "forgetting" the rest - restricted, 
local updates, so to speak. Therefore your proposals make sense to me.

Regards,
Hans-Juergen

PS: Perhaps p:modifyNodes is better than p:modifyNode? Often it is a set 
of nodes what is edited. Or perhaps p:localUpdates?


Alex wrote:

...

btw is there a way to vote for changing the name of p:viewport

I'm not certain if the graphics terminology influenced the naming or if 
that is coincidence http://en.wikipedia.org/wiki/Viewport

What would a developer think p:viewport does intuitively?  If random xml 
developer not familiar with xproc was asked what they were going to do 
when viewing a port on their xml input what would they say?

There may be a better term related to what is happening with the xml 
input such that a selection of the document is being modified.

p:modifySubtree
p:modifyNode

Maybe p:modifyNode is the most intuitive I can come up with 
brainstorming here..

Let me know your thoughts
Regards

Received on Wednesday, 2 February 2011 11:25:37 UTC