[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [relax-ng] Re: Confirmation needed: string values and attributes
> Hi, > > I would just like to get a confirmation (to my reading of the spec > confirmed by the behavior of Jing) that schemas that cannot validate any > instance document can be achieved by specifying a value with linefeeds > in an attribute. > > For instance: > > <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo"> > <attribute name="bar"> > <value type="string"> > Can't be matched. > </value> > </attribute> > </element> > > is a schema which specifies that the value of the attribute bar must > contain line feeds which cannot happen per the normalization done on > attribute values in XML 1.0. > > The schema is thus correct but there are no documents which can be valid > per this schema. An easier way to get the same effect is just to write: <notAllowed xmlns="http://relaxng.org/ns/structure/1.0"/> This is a correct schema that accepts nothing. regards, -- Kohsuke KAWAGUCHI Sun Microsystems kohsuke.kawaguchi@sun.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC