G
Geert
Hello,
I'm trying to write a RELAX NG schema that *only* validates the
following XML instance (with mixed content):
<div id="1">A<a href="X"/></div>
The problem is to constrain the text value after the opening <div> tag
to some fixed value. Is this actually possible, and if so, how can it
be done?
I tried with the following schema, but validation fails at the
"<value>A</value>" line. Jing says: Error, group of "string" or "data"
element.
<element name="div">
<attribute name="id">
<value>1</value>
</attribute>
<value>A</value>
<element name="a">
<attribute name="href"/>
<value>X</value>
</attribute>
</element>
</element>
Regards
--Geert
I'm trying to write a RELAX NG schema that *only* validates the
following XML instance (with mixed content):
<div id="1">A<a href="X"/></div>
The problem is to constrain the text value after the opening <div> tag
to some fixed value. Is this actually possible, and if so, how can it
be done?
I tried with the following schema, but validation fails at the
"<value>A</value>" line. Jing says: Error, group of "string" or "data"
element.
<element name="div">
<attribute name="id">
<value>1</value>
</attribute>
<value>A</value>
<element name="a">
<attribute name="href"/>
<value>X</value>
</attribute>
</element>
</element>
Regards
--Geert