Subject: Re: [xsl] 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 |
I thought, from your OP, that the doc looked more something like this:
<root> <somenode xmlns:in="urn:invoice"> <in:Invoice> <in:somenode /> </in:Invoice> </somenode> </root>
<root> <in:Invoice xmlns:in="urn:invoice"> <in:somenode /> </in:Invoice> </root>
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.
no, it is not the xslt that output that. it was the xforms submission.> 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 error.
obviously the xforms engine was incorrect to serialize that structure but that is something different.
Cheers, Bryan Rasmussen
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] I need to make sure that , Abel Braaksma | Thread | Re: [xsl] I need to make sure that , Abel Braaksma |
Re: [xsl] What's your visual metaph, Abel Braaksma | Date | Re: [xsl] I need to make sure that , Abel Braaksma |
Month |