Bugs item #1352450, was opened at 2005-11-09 10:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1352450&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: DocumentSource for document with xmlns="" breaks doc.

Initial Comment:
Document:
<root xmlns="root-ns">
        <foo>
                <bar xmlns="">
                        <baz/>
                </bar>
        </foo>
</root>

----- Saxon FAILS
DocumentSource dataSource = new DocumentSource(data);

---- Ok.
DocumentSource ds = new DocumentSource(data);
SAXSource dataSource = new SAXSource(ds.getInputSource());

---- Saxon's stack trace
Caused by: net.sf.saxon.trans.DynamicError: Cannot
output a namespace node for the default namespace when
the element is in no namespace
        at
net.sf.saxon.event.ComplexContentOutputter.namespace(ComplexContentOutputter.java:228)
        at
net.sf.saxon.tinytree.TinyElementImpl.sendNamespaceDeclarations(TinyElementImpl.java:76)
        at
net.sf.saxon.tinytree.TinyElementImpl.sendNamespaceDeclarations(TinyElementImpl.java:87)
        at
net.sf.saxon.tinytree.TinyElementImpl.sendNamespaceDeclarations(TinyElementImpl.java:87)
        at
net.sf.saxon.instruct.Copy.outputNamespaceNodes(Copy.java:86)
        at
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:159)
        at
net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:123)
...

this happens when shallow copy template are used in xslt.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1352450&group_id=16035


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to