On 24/10/05, George Cristian Bina <[EMAIL PROTECTED]> wrote:
> For nsName see > > http://www.relaxng.org/spec-20011203.html#IDAEBZR > > As you see the ns attribute is not required, in the process of > simplification if it is not present on name or on nsName then it is > computed looking up the ancestor axis. OK, it is optional, and I've marked it as such. Pragmatically, I don't expect to see an nsName elements without the ns attribute though, would you? > > > For parentRef see: > http://www.relaxng.org/spec-20011203.html#IDASNZR > The proposed description: > "Defines a reference to a named pattern in the parent grammar" seems > close to the above. This tells me what it refers to > > While the current description: > "Extends the scope of a named pattern to that of a pattern in > the parent grammar" This tells me what that reference does... for my schema? (though in all honesty I must confess to not understanding either of them?) It's the 'scope' term that confuses me? Eric also says, The parentRef pattern provides a way to extend this scope and refer to a named pattern defined in the parent grammar. >From the example, it would appear to be re-using a pattern in this grammar from a definition in the including grammar. http://books.xmlschemata.org/relaxng/ch17-77195.html Does that make a more pragmatic definition? "Allows the re-use of a pattern from a grammar which includes the current grammar, within the current grammar" E.g. if pattern A is included in grammar A, which includes grammar B then grammar B may reference pattern A using <parentRef name="A"/> I think that's it? Any improvement? Thanks for the other parts George. All included. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/2U_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rng-users/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
