0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * Class XMLSignatureInputDebugger 661N/A * @author $Author: mullan $ 661N/A * @version $Revision: 1.3 $ 0N/A /** Field _xmlSignatureInput */ 0N/A /** Field _writer */ 0N/A // public static final String HTMLPrefix = "<!DOCTYPE HTML PUBLIC 0N/A // \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><style 0N/A // type=\"text/css\"><!-- .INCLUDED { color: #000000; background-color: 0N/A // #FFFFFF; font-weight: bold; } .EXCLUDED { color: #666666; 0N/A // background-color: #999999; } .INCLUDEDINCLUSIVENAMESPACE { color: 0N/A // #0000FF; background-color: #FFFFFF; font-weight: bold; font-style: 0N/A // italic; } .EXCLUDEDINCLUSIVENAMESPACE { color: #0000FF; background-color: 0N/A // #999999; font-style: italic; } --> </style> </head><body 0N/A // bgcolor=\"#999999\"><pre>"; 0N/A /** The HTML Prefix* */ 0N/A static final String HTMLPrefix =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n" 0N/A +
"<title>Caninical XML node set</title>\n" 0N/A +
" color: #000000; \n" 0N/A +
" background-color: \n" 0N/A +
" font-weight: bold; } \n" 0N/A +
" color: #666666; \n" 0N/A +
" background-color: \n" 0N/A +
".INCLUDEDINCLUSIVENAMESPACE { \n" 0N/A +
" color: #0000FF; \n" 0N/A +
" background-color: #FFFFFF; \n" 0N/A +
" font-weight: bold; \n" 0N/A +
" font-style: italic; } \n" 0N/A +
".EXCLUDEDINCLUSIVENAMESPACE { \n" 0N/A +
" color: #0000FF; \n" 0N/A +
" background-color: #999999; \n" 0N/A +
" font-style: italic; } \n" 0N/A +
"<body bgcolor=\"#999999\">\n" 0N/A +
"<h1>Explanation of the output</h1>\n" 0N/A +
"<p>The following text contains the nodeset of the given Reference before it is canonicalized. There exist four different styles to indicate how a given node is treated.</p>\n" 0N/A +
"<li class=\"INCLUDED\">A node which is in the node set is labeled using the INCLUDED style.</li>\n" 0N/A +
"<li class=\"EXCLUDED\">A node which is <em>NOT</em> in the node set is labeled EXCLUDED style.</li>\n" 0N/A +
"<li class=\"INCLUDEDINCLUSIVENAMESPACE\">A namespace which is in the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li>\n" 0N/A +
"<li class=\"EXCLUDEDINCLUSIVENAMESPACE\">A namespace which is in NOT the node set AND in the InclusiveNamespaces PrefixList is labeled using the INCLUDEDINCLUSIVENAMESPACE style.</li>\n" 0N/A +
"</ul>\n" +
"<h1>Output</h1>\n" +
"<pre>\n";
0N/A /** HTML Suffix * */ 0N/A * Constructor XMLSignatureInputDebugger 0N/A * @param xmlSignatureInput the signatur to pretty print 0N/A * Constructor XMLSignatureInputDebugger 0N/A * @param xmlSignatureInput the signatur to pretty print 0N/A * @param inclusiveNamespace 0N/A * Method getHTMLRepresentation 0N/A * @return The HTML Representation. 0N/A * @throws XMLSignatureException 0N/A // get only a single node as anchor to fetch the owner document 0N/A * Method canonicalizeXPathNodeSet 0N/A * @param currentNode 0N/A * @throws XMLSignatureException 0N/A * @throws IOException 0N/A * The XPath data model allows to select only the first of a 0N/A * sequence of mixed text and CDATA nodes. But we must output 0N/A * them all, so we must search: 0N/A // we output all Attrs which are available 0N/A // included and inclusive 0N/A // included and not inclusive 0N/A // excluded and inclusive 0N/A // excluded and not inclusive 0N/A // included and inclusive 0N/A // included and not inclusive 0N/A // excluded and inclusive 0N/A // excluded and not inclusive 0N/A * Checks whether a Comment or ProcessingInstruction is before or after the 0N/A * document element. This is needed for prepending or appending "\n"s. 0N/A * @param currentNode 0N/A * comment or pi to check 0N/A * @return NODE_BEFORE_DOCUMENT_ELEMENT, 0N/A * NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT or 0N/A * NODE_AFTER_DOCUMENT_ELEMENT 0N/A * @see #NODE_BEFORE_DOCUMENT_ELEMENT 0N/A * @see #NODE_NOT_BEFORE_OR_AFTER_DOCUMENT_ELEMENT 0N/A * @see #NODE_AFTER_DOCUMENT_ELEMENT 0N/A * Normalizes an {@link Attr}ibute value 0N/A * The string value of the node is modified by replacing 0N/A * <LI>all ampersands (&) with <CODE>&amp;</CODE></LI> 0N/A * <LI>all open angle brackets (<) with <CODE>&lt;</CODE></LI> 0N/A * <LI>all quotation mark characters with <CODE>&quot;</CODE></LI> 0N/A * <LI>and the whitespace characters <CODE>#x9</CODE>, #xA, and #xD, 0N/A * with character references. The character references are written in 0N/A * uppercase hexadecimal with no leading zeroes (for example, <CODE>#xD</CODE> 0N/A * is represented by the character reference <CODE>&#xD;</CODE>)</LI> 0N/A * @throws IOException 0N/A * Normalizes a {@link org.w3c.dom.Comment} value 0N/A * @throws IOException 0N/A * Method outputCommentToWriter 0N/A * @param currentComment 0N/A * @throws IOException 0N/A * Method outputTextToWriter 0N/A * @throws IOException