Last Comment Bug 330557 - Submission fails to include all in-scope namespaces
: Submission fails to include all in-scope namespaces
Status: RESOLVED WONTFIX
:
Product: Core
Classification: Components
Component: XForms (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: xforms
: Stephen Pride
Mentors:
http://www.w3.org/TR/xforms/
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-15 03:57 PST by Allan Beaufour
Modified: 2016-02-04 12:20 PST (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Testcase (1.42 KB, application/xhtml+xml)
2006-03-15 03:58 PST, Allan Beaufour
no flags Details

Description Allan Beaufour 2006-03-15 03:57:52 PST
Submission only takes namespaces from specific elements: instance, model and main document node. So any namespaces declared in between are not included.

It must be possible to ask the document for all namespaces visible at a certain node instead of the specific copying we are doing now.
Comment 1 Allan Beaufour 2006-03-15 03:58:27 PST
Created attachment 215118 [details]
Testcase
Comment 2 Doron Rosenberg (IBM) 2006-03-15 07:04:01 PST
"It must be possible to ask the document for all namespaces visible at a certain
node instead of the specific copying we are doing now."

When I wrote the code, I couldn't figure out how to do that. smaug might know more :)
Comment 3 nico 2008-12-02 08:46:15 PST
It seems that transformiix does not keep namespaces declarations done at root level, it only dumps namespaces which will be actually used in the resulting XML. 

That is a problem when trying to transform schemas, as namespaces which are declared sometimes refer to element declarations like <xsd:element name="foo:bar"/>.
The namespace foo is not used in the markups of the schemas, but it has to be kept in the resulting XML.

As far as I know, the attachment does not even describe the actual behaviour. Other XSLT processors keep the namespaces declared at root level.
Comment 4 David Bolter [:davidb] 2016-02-04 12:20:46 PST
RIP xforms

Note You need to log in before you can comment on or make changes to this bug.