[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: I need to make sure that all namespace declaration

Subject: Re: I need to make sure that all namespace declarations get output to a particular element, not the document element
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Thu, 22 Mar 2007 15:25:25 +0100
Re:  I need to make sure that all namespace declaration
Well I am already forced, due to lack of support for all of Xforms
capabilities in OO to do post processing of the Xforms instance
(however different thing than post processing of the xforms input, I
guess I can actually process that one more time, since the most
resource intensive part of the process is that which zips the xml into
the open office document and then opens open office.), unfortunately
what comes out of the xforms submission currently, due to the lack of
the invoice namespace on the invoice element is
<:Invoice

I am actually very close to insanity at this point.

Cheers,
Bryan Rasmussen

On 3/22/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
bryan rasmussen wrote:
>
> Thus I need to make sure my namespace declarations come out on the XML
> subtree that the OO xforms processor is taking as the document
> element, basically.
>

I see. That is grave news and a pity the OO people choose such an awful
approach. Well, the scenario laid out in my mail will work if you remove
the declarations from the root xsl:stylesheet. You will end-up having an
awefull lot of work...

What if you move your namespace declarations to a DTD, where you define
the root element of these elements that are separately processed by the
forms processor as having the needed namespaces. This has some drawback
(many people consider it bad practice to hide the namespaces in a DTD),
but has the advantage in your scenario of never having to worry again
about the declarations.

Of course, it is very well possible that OO is doing this incorrectly as
well (i.e., if your doc is not processed by an XML processor before it
takes out the xform parts, your out of luck).

Yet another approach is post-processing. Or use XSLT 2 (but you said you
can't).

Cheers,
-- Abel

Current Thread

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-2013 All Rights Reserved.