[oXygen-user] regression of oxygen 12.2: validation against rnc schema without .rnc extension on URL [RETRACTION]

Tony Graham
Mon Jun 20 07:10:08 CDT 2011


On Mon, June 20, 2011 12:50 pm, Florent Georges wrote:
> Radu Coravu wrote:
>> Actually the specs state that the pseudo-attributes for the
>> xml-model  must have the "&" escaped to "&". Here is a
>> page linked from the  xml-model specs:
>
>> http://www.w3.org/XML/2009/12/xml-stylesheet/#dt-value
>
>   What I understand from there is that PredefEntityRef must be analyzed as
> such (and thus decoded) but the characters they represent do not have to
> be be escaped.  That is: "a&b" must be parsed as "a&b", but you can
> also have "a&b" directly in the PI's data.

Production 3 [1] prohibits "bare" '&' or '<':

[3] PseudoAttValue ::= ('"' ([^"<&] | CharRef | PredefEntityRef)* '"' |
                         "'" ([^'<&] | CharRef | PredefEntityRef)* "'")

This is a good match for Production 10 of the XML Rec [2]:

[10] AttValue ::= '"' ([^<&"] | Reference)* '"'
                  |  "'" ([^<&'] | Reference)* "'"

Regards,



Tony Graham                                   
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming


[1] http://www.w3.org/XML/2009/12/xml-stylesheet/#pseudo-attributes
[2] http://www.w3.org/TR/xml/#sec-common-syn



More information about the oXygen-user mailing list