STIXProject/stix-validator — pull request #38 by slsnow (2014-09-22 13:08:44+00:00)
Title: Implement best practice validation for Controlled Structure XPath

Fixes #4

@bworrell, there is one pending issue with this I could use your input on:

When running the XPath to ensure there is some sort of result set, some XPath currently doesn't work. Basically, we need to resolve namespaces within the XPath the same way namespaces resolve within the document itself.

For example: given a STIX doc with `xmlns:stix="http://stix.mitre.org/stix-1"`,
this: `//stix:STIX_Header` won't validate.
However, `//stix-core:STIX_Header` will validate, as `stix-core` is what the `stix` namespace translates to within the validator.

I can't readily see a good way to resolve this, so I could use your eyes and brain-piece!