[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: Fri, 23 Mar 2007 12:40:23 +0100
Re:  I need to make sure that all namespace declaration
I thought, from your OP, that the doc looked more something like this:

  <somenode xmlns:in="urn:invoice">
         <in:somenode />

yes, like that, I wanted it like this

   <in:Invoice xmlns:in="urn:invoice">
       <in:somenode />

which I now have by basically running the toplevel layout as a named template and copying the xml structure I need into the xforms:model

and that you rather want the namespace declaration on the in:Invoice
element (middle example), and not before that.

> and I submit the xform via  a put to the filesystem what comes out is
> <:Invoice> instead of just a message box with message "The in prefix
> has not been declared."

The element that is serialized as '<:Invoice>' is not a legal XML+NS
element (I believe it would be legal in old original XML, without
namespaces, but that's not what XSLT creates).When you say 'put to the
filesystem', do you mean the XSLT serializer, or your own
post-processor? If any XSLT serializer creates a tag like that, it's an

no, it is not the xslt that output that. it was the xforms submission.

obviously the xforms engine was incorrect to serialize that structure
but that is something different.

Bryan Rasmussen

Current Thread


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.
First Name
Last Name
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.