[relaxng-user] Schematron

Sebastian Rahtz sebastian.rahtz at computing-services.oxford.ac.uk
Tue Jan 20 17:10:35 ICT 2004



Dave Pawson wrote:
>     Has anyone a tiny example
> of successfully using a Schematron insert within
> a relax ng schema...
see following

>   and the processing, with cmd line params they used please?

I just use "relames" (or is it "relmes")

<define name="email">
    <element name="email">
      <ref name="attributes.class.global"/>
      <ref name="macro.paraContent"/>
     <s:assert test="contains(.,'@')">
       email address must contain an @ sign
    </s:assert>
    </element>
</define>

-- 
Sebastian Rahtz      Information Manager
Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431


More information about the relaxng-user mailing list