santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Benito <raul.benito.gar...@gmail.com>
Subject Re: [Java] C14N of DocumentFragment
Date Mon, 25 Jul 2005 16:20:20 GMT
If you think so... Then I will also do it in CVS head.
Anyway can you send a test case? so i can test it and include to the
testsuite for the future.

Regards

Raul

On 7/24/05, Vishal Mahajan <vmahajan@amberpoint.com> wrote:
> I observed a possible bug in the CanonicalizerBase class. If the node
> passed to method canonicalizeSubTree(Node, NameSpaceSymbTable) is of
> type DocumentFragment, currently an exception is thrown. I think the
> behavior in such a case should be same as that for a Document type node.
> Just wanted to confirm this. I have also pasted the patch below (Note
> that the patch is against the 1.2.1 version of the code).
> 
> Vishal
> 
> --------------------------------------------------------
> --- CanonicalizerBase.java.orig Mon Feb 28 21:55:58 2005
> +++ CanonicalizerBase.java      Sun Jul 24 23:15:33 2005
> @@ -165,10 +165,10 @@
> 
>        case Node.ENTITY_NODE :
>        case Node.NOTATION_NODE :
> -      case Node.DOCUMENT_FRAGMENT_NODE :
>        case Node.ATTRIBUTE_NODE :
>           // illegal node type during traversal
>           throw new CanonicalizationException("empty");
> +      case Node.DOCUMENT_FRAGMENT_NODE :
>        case Node.DOCUMENT_NODE :
>           for (Node currentChild = currentNode.getFirstChild();
>                   currentChild != null;
> 
> 


-- 
http://r-bg.com

Mime
View raw message