[xml] attribute//ref in RelaxNG

Testing the 2.5.4 release of xmllint with my
RelaxNG schemas, I get a lot of errors about

  Found forbidden pattern attribute//ref

which I can isolate to this test case


<a b="c"/>


  <ref name="a"/>

<define name="a">
  <element name="a">
   <attribute name="b">
    <ref name="c"/>

<define name="c">

The RelaxNG validators by James Clark and Sun both
say this is fine, and I cannot off-hand see anything in the
Relax spec which would forbid it.

Is this a bug in libxml2, or am I not reading the
spec closely enough?

Sebastian Rahtz      OUCS Information Manager
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]