[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Should information be encoded into identifiers?

  • From: Liam R E Quin <liam@w3.org>
  • To: rjelliffe@allette.com.au
  • Date: Sat, 06 Mar 2010 23:03:00 -0500

Re:  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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.