XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Should information be encoded into identifiers?

On Sun, 2010-03-07 at 14:44 +1100, rjelliffe@allette.com.au wrote:
[...]
> Consider the case where you want to validate that your XHTML 5 documents
> only have no <video> links to MPEG files, because you don't want to
> participate in a power grab of the WWW by US corporations, and your only
> tool to do this is XSLT. Or a Schematron based on XSLT. (Or, indeed, XSD.)

I know it's just an example, but... :)

The only reliable way to do this is not to inspect the URIs but to use
HTTP HEAD and check the MIME media type of whatever you get back.  Of
course, a server could randomly send a different format each time...
unless you own the server to which the URI refers, all bets are off.
This decoupling (as you know, Rick, but many people reading this might
not, which is why I need to say it), this decoupling is fundamental to
Web architecture.  It's also why XML NOTATION was broken as designed.

Currently, this isn't something you can do in XSLT - there's another
thread about exactly that, of course.

Best,

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS