- From: <vojtech.toman@emc.com>
- Date: Wed, 2 Feb 2011 06:04:50 -0500
- To: <xproc-dev@w3.org>
- Message-ID: <3799D0FD120AD940B731A37E36DAF3FE32B15AFD63@MX20A.corp.emc.com>
I personally think that the name p:viewport is a good one. The name has always suggested "different views" of the underlying document to me. The Wikipedia entry that you are referring to even mentions the viewport design pattern: "The viewport represents a snapshot of the model at a given point, through a view, typically after domain logic has been applied to it." I actually don't think this is really that different from the CG's "position of the camera" definition. The "position of the camera" does not necessarily mean simply looking at the scene (or in our case, an XML document). There are always transformations involved before the elements of the scene (document) hit the camera. Depending on how you model the scene and what rendering model you use, you may get quite different views. (Even in real world, mist or turbulences in the air may - by applying "domain logic" - distort the view). So, if we were to vote about changing the p:viewport name, *I* would vote for no change. Regards, Vojtech -- Vojtech Toman Consultant Software Engineer EMC | Information Intelligence Group vojtech.toman@emc.com http://developer.emc.com/xmltech From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Alex Muir Sent: Wednesday, February 02, 2011 11:39 AM To: Jostein Austvik Jacobsen Cc: XProc Dev Subject: Re: p:exec -- can it apply to only selected parts of input using a loop? Thanks.. 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 On Tue, Feb 1, 2011 at 1:17 PM, Jostein Austvik Jacobsen <josteinaj@gmail.com<mailto:josteinaj@gmail.com>> wrote: Initially I would look at p:viewport: http://www.w3.org/TR/xproc/#p.viewport -- "It is a compound step that processes a single document, applying its subpipeline to one or more subtrees of the document." Regards Jostein 2011/2/1 Alex Muir <alex.g.muir@gmail.com<mailto:alex.g.muir@gmail.com>> I know that p:exec can be applied to a whole document within the pipeline however I'm unaware if it can be applied to one part of a document. Given an input that had multiple html documents and text documents <DOC> <TEXT id="1"> ... </TEXT> <HTML id="2"> ... </HTML> <TEXT id="3"> ... </TEXT> <HTML id="4"> ... </HTML> </DOC> Is it possible to use say within a loop apply a p:exec to only the HTML parts say with "w3m" within the p:exec resulting with a document that has the HTML parts converted into TEXT <DOC> <TEXT id="1"> ... </TEXT> <TEXT id="2"> ... </TEXT> <TEXT id="3"> ... </TEXT> <TEXTid="4"> ... </TEXT> </DOC> Regards -- Alex ----- Currently: Freelance Software Engineer 6+ yrs exp Previously: https://sites.google.com/a/utg.edu.gm/alex/ A Bafila, is two rivers flowing together as one: http://www.facebook.com/pages/Bafila/125611807494851 -- Alex ----- Currently: Freelance Software Engineer 6+ yrs exp Previously: https://sites.google.com/a/utg.edu.gm/alex/ A Bafila, is two rivers flowing together as one: http://www.facebook.com/pages/Bafila/125611807494851
Received on Wednesday, 2 February 2011 11:07:48 UTC