Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Schema validations Question..

Status
Not open for further replies.

niet72

Programmer
Jul 17, 2008
7
0
0
US
I am new to Schema Validations..

I just wanted to know - does Schema Validations have capabilities to define rules/contraints for an XML something like this:

If the XML contains Node <ABC> then it should have Nodes <NNN> and <MMM>

If the XML contains Node <XYZ> then it should have Nodes <JJJ> and <KKK>

thanks..
Niet
 
The trouble is Schema language is not singular in practice. There are many proponents under the concept of Schema in competition each with its strength and weakness.

In wxsl version 1.0, such kind of rule can only be constructed for very limited and artificial case. In general case, it is even practically impossible. Equally painful would have been observed in relax ng. The only naturally adapted to these kinds of constraint or rule based schema is schematron. You can check out for instance this as a start.

However, things are actually always on the move and w3c people have clear conscious that there is a real need for some rule-based extension. In fact the last call public working draft of wxsl version 1.1 (released just three months or so ago) has planned full xpath 2.0 embedded into it which paves the way of making rule-based validation viable and free the task from appealing to schematron and hence, make the whole thing more homogenious. In any case, things are on the move.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top