|
(typos nearly nailed - there's still this: <fb:title>I am in file'fb'</fa:title> <-- here)
Sometimes the standards seem designed to create problems. A nasty feature of XML Namespaces that 'no prefix' doesn't mean 'default namespace', it means 'default namespace' OR 'no namespace', and the difference is important. Xml schema cements this by making elementFormDefault='unqualified' the default, which means this:
<ns:foo xmlns:ns="some:schema-ns"><bar>Hello world</bar></ns:foo>
... is actually referring to 'bar' in the same schema as 'foo' (but /not/ the same namespace as foo - 'bar' has no namespace above). Or maybe it doesn't. You can't actually tell without resorting to the schema.
As Humpty-Dumpty said to Alice: "When I use a word, it means just what I choose it to mean -- neither more nor less."
|