@@ -0,0 +1,2515 @@
+//%0A// XSLTTools.java%0A//%0A%0A/*%0AJava code for use with WiscScan.%0A%0ACopyright (c) 2008, UW-Madison LOCI%0AAll rights reserved.%0A%0ARedistribution and use in source and binary forms, with or without%0Amodification, are permitted provided that the following conditions are met:%0A    * Redistributions of source code must retain the above copyright%0A      notice, this list of conditions and the following disclaimer.%0A    * Redistributions in binary form must reproduce the above copyright%0A      notice, this list of conditions and the following disclaimer in the%0A      documentation and/or other materials provided with the distribution.%0A    * Neither the name of the UW-Madison LOCI nor the%0A      names of its contributors may be used to endorse or promote products%0A      derived from this software without specific prior written permission.%0A%0ATHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0AAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0AIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0AARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE%0ALIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0ACONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0ASUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0AINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0ACONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0AARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0APOSSIBILITY OF SUCH DAMAGE.%0A*/%0A%0Apackage loci.wiscscan;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.xml.transform.Templates;%0A%0Aimport loci.common.xml.XMLTools;%0A%0A/**%0A * TODO%0A *%0A * %3Cdl%3E%3Cdt%3E%3Cb%3ESource code:%3C/b%3E%3C/dt%3E%0A * %3Cdd%3E%3Ca href=%22http://dev.loci.wisc.edu/trac/java/browser/trunk/projects/wiscscan-utils/src/main/java/loci/wiscscan/auth/Credentials.java%22%3ETrac%3C/a%3E,%0A * %3Ca href=%22http://dev.loci.wisc.edu/svn/java/trunk/projects/wiscscan-utils/src/main/java/wiscscan/auth/Credentials.java%22%3ESVN%3C/a%3E%3C/dd%3E%3C/dl%3E%0A *%0A * @author Curtis Rueden%0A * @author Abhinav Tallavajhula%0A */%0Apublic class XSLTTools %7B%0A%0A%09/** Transforms the given XML string using the specified XSLT stylesheet. */%0A%09public static String transformXML(final String xml,%0A%09%09final String pathToStylesheet)%0A%09%7B%0A%09%09final Templates stylesheet =%0A%09%09%09XMLTools.getStylesheet(pathToStylesheet, null);%0A%09%09try %7B%0A%09%09%09return XMLTools.transformXML(xml, stylesheet);%0A%09%09%7D%0A%09%09catch (final IOException exc) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add utility method for applying XSLT from WiscScan