W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > March 2010

exclude-prefixes was: Another way other than @profile, @vocab or @map

From: Martin McEvoy <martin@weborganics.co.uk>
Date: Fri, 19 Mar 2010 20:07:29 +0000
Message-ID: <4BA3D981.3000502@weborganics.co.uk>
To: Shane McCarron <shane@aptest.com>
CC: Toby Inkster <tai@g5n.co.uk>, Ivan Herman <ivan@w3.org>, RDFa WG <public-rdfa-wg@w3.org>, Ben Adida <ben@adida.net>, Manu Sporny <msporny@digitalbazaar.com>
Hello,

I thought I would put this Idea in a separate email because its not at 
all the same as previous discussions on @profile/@vocab/@everything else :)

I work a lot with XSLT for general parsing of x/html documents, If I 
want to exclude a prefix from my result document I use something like 
exclude-result-prefixes="html", which got me thinking that this is a 
simpler solution to prefix-less rdfa to any so far. example:

  <body xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
        exclude-prefixes="vcard">
	<div typeof="VCard" about="#BusinessEntity">
		<div property="fn">L'Amourita Pizza</div>
		<div rel="adr">
			<div typeof="Address">
				<span property="street-address">2040 Any Street</span>,
				<span property="locality">Springfield</span>,
				<span property="postal-code">98102</span>.
			</div>
		</div>
		Tel:<span property="tel">206-555-7242</span>.
		<span rel="url" resource="http://pizza.example.com/"></span>
	</div>
</body>

... here I have used exclude-prefixes instead of the longer 
exclude-result-prefixes, I think this approach has one key benefit over 
the current discussions in that a prefix is also included in the 
document should a parser to be conforming need a prefix in the result 
document.


Best wishes.

-- 
Martin McEvoy
Received on Friday, 19 March 2010 20:08:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:06 GMT