Hi,
> This seems to be difficult to do with XML Schema(?)
You are correct.
>
> Some sources tell me that the Schematron language is
> more powerful than XML Schema, and that it can
> be exploited by annotating the appinfo element of an
> XML Schema.
You can place the schematron rules in the schema (although they will
still not be in context) or in a separate XML file. I would not say it was
more powerful (no typing system etc) but it can certainly do things that
XML Schema can not.
>
> Is this the best approach using Xerces?
It is definitely a reasonable approach.
>
> I know Xerces doesn't support Schematron, but is it
> possible to do it in a similar fashion?
> (meaning cross-platform C++ libraries -
> M$ stuff Running on Mac could also be an option)
It is trivial to implement schematron using xerces and Pathan or Xalan. If
you look around the web or ask on the mailing lists I suspect someone
already has. If not give me a shout and I can give you a few pointers. I
can say that Pathan would definitely accept the code.
>
> In a way it is easy for me to extract the element-attributes.
> Validating it as XML Is not much help as long at it is not
> Built into XML-Spy etc. --- So the important thing is to find a
> Way to express and validate the constraints.
>
Sorry, I don't understand this last paragraph.
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]