Hi Dave,

Thanks for putting it all together!

For nsName see

http://www.relaxng.org/spec-20011203.html#IDAEBZR

***
For any name, nsName or value element that does not have an ns 
attribute, an ns attribute is added. The value of the added ns attribute 
is the value of the ns attribute of the nearest ancestor element that 
has an ns attribute, or the empty string if there is no such ancestor. 
Then, any ns attribute that is on an element other than name, nsName or 
value is removed.
***

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.


For parentRef see:
http://www.relaxng.org/spec-20011203.html#IDASNZR

***
Define the in-scope grammar for an element to be the nearest ancestor 
grammar element.
[...]
A parentRef element refers to a define element if the value of their 
name attributes is the same and the in-scope grammar of the in-scope 
grammar of the parentRef element is the same as the in-scope grammar of 
the define element.
***

The proposed description:
"Defines a reference to a named pattern in the parent grammar" seems 
close to the above.

While the current description:
"Extends the scope of a named pattern to that of a pattern in
the parent grammar"
seems to me more difficult to understand in a quick reference guide.

Apart from these there are needed a couple of really minor corrections:

1. In the externalRef model there is
@href {empty}
should be changed to
@href, {empty}

2. The div element is marked as Annotation division, this is the only 
mark written with upper case so maybe that should be "annotation division".

Ah.. and what about the attributes section? You said initially that you 
like them but I do not see this in the PDF version:

Global attributes - apply to all elements
-------------------------------------------------
Attribute: ns
Defines the default namespace to be used for unqualified names.

Attribute: datatypeLibrary
A URI identifying the library of datatypes being used.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Dave Pawson wrote:
> Updated as per George's comments.
> 
> parentRef
> and
> nsName
> 
> Could others see if the definition is right please?
> 
> I'm unsure.
> 
> regards
> 
> DaveP
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  


------------------------ 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/
 


Reply via email to