[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Schematron: Categories of Usage?
- From: Manos Batsis <manos_lists@geekologue.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Mon, 22 Jan 2007 07:31:24 -0800
Hi Roger,
Last time i used Schematron to validate sitemap files during project
builds. By sitemap files i mean XML documents where the element
structure is used to denote URLs of a web application, something like:
<root>
<user>
<login />
<logout />
</user>
<products>
<!-- ... ->
</products>
</root>
Anyway, one would want to ensure that all denoted URIs are unique, i.e.
that arbitrary element names are unique between siblings. It took
seconds with Schematron but, if possibhle at all, it would take a lot
more with another schema language. I haven't bothered to find out.
Dunno how would one describe this without flattening everything down to
"power of XPath" or without getting way too funny like "sub-document
context random uniqueness?" :-)
Free time for hacking is limited. Schematron really works while not
getting in the way, so "Hacking" deserves to be a (great) category
IMHO.
Cheers,
Manos
PS: Now that i think about it, since even my error pages are XHTML docs,
i may even try to use this to check against 404s/obsolete paths during
validation. Heh.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]