[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ecrit] Profiles (was: Consensus Call) - namespaces



XML validity and XML namespaces are separate features. XML validity, in the form of DTDs, existed before XML namespaces. It just so happens that the more modern XML schema languages, such as Relax NG and XML Schema, account for XML namespaces and allow the validity to check the namespace, which wasn't possible with DTDs.

However, validation checking will not solve this problem, as each XML fragment is valid against its schema. This means such validation must be done by the application.

-andy

On Apr 24, 2007, at 10:39 PM, Henning Schulzrinne wrote:

I don't understand your comment. The namespace better identify completely the list of XML tags that are permissible, as something is terribly wrong with the XML validity otherwise.

I also don't see why a purely civic address would need a GML name space, but that's a separate issue.

On Apr 24, 2007, at 9:22 PM, Andrew Newton wrote:


On Apr 24, 2007, at 9:04 PM, Henning Schulzrinne wrote:
The receiver doesn't care that the format is derived from RFC 3825. The namespace declaration (which you elided in your example)

  xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"

identifies the schema, so the receiver can easily tell whether it should ignore or handle the XML tags or not (or decide that it needs to give up instead). Thus, it can tell what meaning FLR has and whether it knows anything about that particular XML tag.

No. The way you are describing it, it must recognize both the GML and the civicAddr namespaces. And a 3825 based location profile could easily use urn:ietf:params:xml:ns:pidf:geopriv10:civicLoc for the namespace identifier. It would be better if the sender let the receiver in on what type of location it is sending.


-andy



_______________________________________________
Ecrit mailing list
Ecrit at ietf.org
https://www1.ietf.org/mailman/listinfo/ecrit