[xquery-talk] Default namespace best practices?

David Sewell dsewell at virginia.edu
Wed Mar 9 12:38:30 PST 2005


On Wed, 9 Mar 2005, Michael Kay wrote:

> The spec changed fairly recently to require prefix retention wherever
> possible, so Mark Logic may not have caught up with the changes. The main
> reason for the change was concerned with attribute nodes rather than
> elements - parentless attributes exist independently of any namespace
> declarations - but the change was made uniformly for symmetry.

Thanks for the clarification! In practice, it seems like it would make
sense to allow an implementation to strip prefixes from elements in the
XHTML namespace, at least, to permit output serialization as valid
XHTML without having to do post-processing outside of XQuery.

David

-- 
David Sewell, Editorial and Technical Manager
Electronic Imprint, The University of Virginia Press
PO Box 400318, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: dsewell at virginia.edu   Tel: +1 434 924 9973
Web: http://www.ei.virginia.edu/


More information about the talk mailing list