error message - cvc-complex-type.2.4.a
Posted: Fri Jul 22, 2005 11:29 pm
hello,
i use following schematron schema:
<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://www.ascc.net/xml/schematron">
....
</sch:pattern>
<sch:pattern name="The personnel number occurs several times!">
<sch:rule context="person">
<sch:report test="count(../person[@pno = current()/@pno]) > 1">The personnel number <sch:value-of select="@pno"/> at the element <sch:name/> occurs several times.</sch:report>
</sch:rule>
</sch:pattern>
</sch:schema>
i get this error description...
W cvc-complex-type.2.4.a: Invalid content was found starting with element 'sch:value-of'. One of '{"http://www.ascc.net/xml/schematron":name, "http://www.ascc.net/xml/schematron":emph, "http://www.ascc.net/xml/schematron":dir, "http://www.ascc.net/xml/schematron":span, WC[##other:"http://www.ascc.net/xml/schematron"]}' is expected.
URL: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
... but i don`t know the problem.
any help would be appreciated,
gerd f.
i use following schematron schema:
<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://www.ascc.net/xml/schematron">
....
</sch:pattern>
<sch:pattern name="The personnel number occurs several times!">
<sch:rule context="person">
<sch:report test="count(../person[@pno = current()/@pno]) > 1">The personnel number <sch:value-of select="@pno"/> at the element <sch:name/> occurs several times.</sch:report>
</sch:rule>
</sch:pattern>
</sch:schema>
i get this error description...
W cvc-complex-type.2.4.a: Invalid content was found starting with element 'sch:value-of'. One of '{"http://www.ascc.net/xml/schematron":name, "http://www.ascc.net/xml/schematron":emph, "http://www.ascc.net/xml/schematron":dir, "http://www.ascc.net/xml/schematron":span, WC[##other:"http://www.ascc.net/xml/schematron"]}' is expected.
URL: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
... but i don`t know the problem.
any help would be appreciated,
gerd f.