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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSD Schema - use the name of xml file within the xsd rules?

Status
Not open for further replies.

cptk

Technical User
Mar 18, 2003
305
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top