Hi Dave,
NVDL does not allow a default mode and named modes in the same time (as
in the case of XSLT). If you do not specify a startMode then you cannot
have a mode inside rules, you just specify the namespace rules. If you
have a startMode then you specify modes with names inside rules and the
startMode selects the inital mode.
Best Regards,
George
-- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Dave Pawson wrote: > 2008/5/12 George Cristian Bina <george@oxygenxml.com>: >>> It does make me wonder what purpose the startMode attribute serves? >>> If it is *not* the 'first' (in document order), then why is it there? >>> >> Modes in NVDL are similar with modes in XSLT. They provides a different set >> of rules that apply when a mode is selected. In the above sample the mode >> has no relevance, thus the equivalence between the two examples Roger >> posted. > > OK, I can see that now. > > >> If you have multiple modes then one needs to be selected as the >> initial mode (the first section will be processed against) and the startMode >> makes that selection. > > Which, for the example, was of no importance; "Just give me somewhere to start" > (Equivalent in XSLT 2 where I have no input document and need to specify a > named template from which to start?) > > Is there any case where the startMode attribute serves a useful purpose then? > (from the authors viewpoint)? > > > regards > > -- DSDL comments To unsubscribe, please send a message with the command "unsubscribe" to dsdl-comment-request@dsdl.org (mailto:dsdl-comment-request@dsdl.org?Subject=unsubscribe)Received on Mon May 12 23:51:10 2008
This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 22:33:02 UTC