[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML question - reference points
Title: XML question - reference points Hello,
Tom's city description:
Now Bob describes the same city with the same schema, but the content differs (the street names are followed by "Street"): <city>
The point is that the two files describe the same thing from the same schema in different ways via the values of the elements. So if I, being an intercessor, want to link the two together in a common way, how would I do this? I am currently thinking of something like this. Let's say I'm a government employee wanting to provide common tags for Bob and Tom to use in their XML files for consistency. I define a tag called <gov.illinois.chicago.street.name> as a "reference point". Bob and Tom then insert this tag and the value that I've predefined for them (the street name followed by "St."), so when my software parses their XML files, I can find the street name in the format that I'm looking for, which is the industry standard way now. If I want to find the zip code of the street "Main St.", I look for my tag and look up the zip code, regardless of how Bob and Tom named the street. <city>
The whole point is that I want to give Tom and Bob the flexibility to use whatever values they want for the names, but have an "internal" way to map those elements into standardized elements that anyone can find, since the standardized elements and values would be published for all to use. Does this make sense? Is there a better way to do this? Am I off in the weeds? Thanks! Randy
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|