← Prev in month ← Prev in thread

[relax-ng] Confirmation needed: string values and attributes

From
Fric van der Ulist
Date
2002-09-04T10:38:01+00:00
ID
1031135816.919.15.camel@ibook
Thread
[relax-ng] 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.

Is that true? 

Thanks

Eric
-- 
Rendez-vous à Paris.
                          http://www.technoforum.fr/integ2002/index.html
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
← Prev in month ← Prev in thread