This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > July 2004 > validating element occurance based on attribute value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author validating element occurance based on attribute value
UndoMiel

2004-07-31, 7:15 pm

Hi,

I have a situation where i would like to validate the occurance of certain
elements, based on the value of an attribute.

What is the "best" way to handle such validations? I am fairly new to XML
and its validation techniques. Schematron would probably do the trick, but i
havent found a straight forward way that solves my problem.

Anybody ideas - recommendations?

Thanks in advance!


Han

2004-07-31, 11:15 pm

No way because xsd schema doesn't use xpath and xslt syntax. However you can
dynamically create xsd schema with xslt.

"UndoMiel" <undomiele@hotmail.com> wrote in message
news:HMPOc.294$Rt5.198@newsfe4-gui.ntli.net...
> Hi,
>
> I have a situation where i would like to validate the occurance of certain
> elements, based on the value of an attribute.
>
> What is the "best" way to handle such validations? I am fairly new to XML
> and its validation techniques. Schematron would probably do the trick, but

i
> havent found a straight forward way that solves my problem.
>
> Anybody ideas - recommendations?
>
> Thanks in advance!
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews