[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|