I'm a newbie ...
Within a xsd schema, I'd like to know is it possible to apply a different rule based on the actual name of the xml file I'm validating?
For example, a specific tag (eg. <devUse>) is valid only for xml files that contain "debug" in their actual xml file name. If the xml file name doesn't contain the word "debug" then the <devUse> tag is not allowed.
Is it possible to key on the name of the xml file being validated?
I know I could just simply have two different xsd schema's, but wonder if it's possible (somehow) to make this type of determination within the one xsd schema?
Thanks!
Within a xsd schema, I'd like to know is it possible to apply a different rule based on the actual name of the xml file I'm validating?
For example, a specific tag (eg. <devUse>) is valid only for xml files that contain "debug" in their actual xml file name. If the xml file name doesn't contain the word "debug" then the <devUse> tag is not allowed.
Is it possible to key on the name of the xml file being validated?
I know I could just simply have two different xsd schema's, but wonder if it's possible (somehow) to make this type of determination within the one xsd schema?
Thanks!