[dsdl-comment] Re: Are these two NVDL documents equivalent? (one usesa mode, the other doesn't use a mode)

From: Dave Pawson <dave.pawson@gmail.com>
Date: Mon May 12 2008 - 14:39:57 UTC

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

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
--
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 16:40:01 2008

This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 21:53:02 UTC