W3C home > Mailing lists > Public > www-forms@w3.org > October 2003

Re: Validation against the XHTML2 RNG Schema as well as the XForms XSD schema

From: MURATA Makoto (FAMILY Given) <EB2M-MRT@asahi-net.or.jp>
Date: Thu, 09 Oct 2003 09:00:20 +0900
To: www-forms@w3.org
Cc: jjc@jclark.com, MURATA Makoto <eb2m-mrt@asahi-net.or.jp>
Message-Id: <20031009084935.A69F.EB2M-MRT@asahi-net.or.jp>
The repeat construct of XForms is an interesting challenge for schema languages.
Elements from two vocabularies may be interwoven, and we want to validate 
these two vocabularies independently.

I am happy to report that the following document fragment can be validated 
against XHTML2.rng as well as XForms-Schema.xsd.  

  <xforms:repeat id="lineset" nodeset="/my:lines/my:line">
        <xforms:input ref="my:price">
          <xforms:label>Line Item</xforms:label>
        <xforms:input ref="@name">

We do not have to change XHTML2.rng or XForms-Schema.xsd.  We only have 
to provide two NRL schemas (see attachments).

Here is the result.  I still have an error about IDs, but this is a different problem.

bash-2.05b$ java -jar /relax/ng/jing-20030619/lib/jing.jar repeatHTMLOnly.nrl htmlWithRepeat.xml
error: cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'xforms:repeat'.

bash-2.05b$ java -jar /relax/ng/jing-20030619/lib/jing.jar repeatHTMLOnly.nrl htmlWithRepeat.xml
java -jar /relax/ng/jing-20030619/lib/jing.jar repeatHTMLOnly.nrl htmlWithRepeat.xml


MURATA Makoto (FAMILY Given) <EB2M-MRT@asahi-net.or.jp>

Received on Wednesday, 8 October 2003 20:05:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:09 UTC