W3C home > Mailing lists > Public > public-xhtml2@w3.org > July 2007

Using script to implement namespaces

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 10 Jul 2007 22:51:43 +0200
To: "XHTML WG" <public-xhtml2@w3.org>
Message-ID: <op.tu9n8hmhsmjzpq@acer3010.lan>

There are a number of examples of people using script to implement  
particular namespaces. An example that comes immediately to mind is  
FormFaces (www.formfaces.com): you take an XHTML+XForms document, add a  
single script element at the top, and it works in browsers that haven't  
implemented XForms yet.

However, ideally you would like to use the one document, also in browsers  
that have implemented XForms.

So a proposal, a new attribute 'implements':

	<script src="xforms.js" type="..." implements="xf" />

This would tell future browsers to ignore this script element if they  
recognise the namespace bound to the prefix "xf".

Maybe also needed for object elements.

Steven
Received on Tuesday, 10 July 2007 20:55:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 February 2010 18:12:46 GMT