[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Generating xhtml from xml in no namespace

Andrew Welch andrew.j.welch at gmail.com
Thu Dec 18 13:45:32 PST 2008


  Generating xhtml from xml in no namespace
Hi Jesper,

> 2) Create a variable $x and put good old XHTML output, build the
> literal way, into it. The only thing that is missing is
> xmlns="http://www.w3.org/1999/xhtml" in the html element.
>
> 3) Now use the following:
>
> functx:change-element-ns-deep($x, "http://www.w3.org/1999/xhtml")

It's probably the "least worst" so far :) but the output also contains
XForms, so the function would have to only change elements in no
namespace and not all of them...

It's crying out for an xpath-default-namespace facility - is there an
"XQuery 2" in the pipeline that vendors can implement parts of now to
solve common problems like this?   (for example like Saxon provided
with the much needed xhtml output method way before xslt 2.0 was
finialised)

Or of course, the other "solution" is when xslt can operate directly
on the database   (did I say that on this list? :)



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.