L
Lord0
Is it possible to validate/check for the following using a schema?
<question answer="yes">
<answer>This is the answer</answer>
</question>
OR
<question answer="no" />
Where "question" can change.....i.e.
The schema fragment which *would* validate this:
<question1 answer="yes">
<answer>This is the answer</answer>
</question1>
OR
<question1 answer="no" />
Would also be able to validate this:
<question2 answer="yes">
<answer>This is the answer</answer>
</question2>
OR
<question2 answer="no" />
WITHOUT hardcoding "question1", "question2" etc in the schema
Maybe Im going Friday afternoon mad!
Cheers
Lord0
<question answer="yes">
<answer>This is the answer</answer>
</question>
OR
<question answer="no" />
Where "question" can change.....i.e.
The schema fragment which *would* validate this:
<question1 answer="yes">
<answer>This is the answer</answer>
</question1>
OR
<question1 answer="no" />
Would also be able to validate this:
<question2 answer="yes">
<answer>This is the answer</answer>
</question2>
OR
<question2 answer="no" />
WITHOUT hardcoding "question1", "question2" etc in the schema
Maybe Im going Friday afternoon mad!
Cheers
Lord0