[xquery-talk] Generating xhtml from xml in no namespace

Andrew Welch andrew.j.welch at gmail.com
Wed Dec 17 11:21:24 PST 2008

Hi all,

This is surely a faq, but I'm interested in what people think is the
right approach for this...

The input is in no namespace, the required output is unprefixed xhtml:

<html xmlns="http://www.w3.org/1999/xhtml">
     for $x in collection(...)/path/to/node

For some reason the default namespace on the html element affects the
xpath - which is different to xslt and a little odd to me...

Is there something like xpath-default-namespace so I can clear the
default namespace for the xpaths?


Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

More information about the talk mailing list