curcuru 01/01/26 06:45:31
Modified: test/java/src/org/apache/qetest/trax
SystemIdImpInclTest.java
Log:
Update to properly call filenameToURL for fileId's passed to transformer,
parser, etc.
Revision Changes Path
1.3 +9 -5
xml-xalan/test/java/src/org/apache/qetest/trax/SystemIdImpInclTest.java
Index: SystemIdImpInclTest.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/trax/SystemIdImpInclTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SystemIdImpInclTest.java 2001/01/16 21:13:44 1.2
+++ SystemIdImpInclTest.java 2001/01/26 14:45:29 1.3
@@ -107,7 +107,7 @@
* (which will require network resources available).
*
* @author [EMAIL PROTECTED]
- * @version $Id: SystemIdImpInclTest.java,v 1.2 2001/01/16 21:13:44 curcuru
Exp $
+ * @version $Id: SystemIdImpInclTest.java,v 1.3 2001/01/26 14:45:29 curcuru
Exp $
*/
public class SystemIdImpInclTest extends XSLProcessorTestBase
{
@@ -615,7 +615,8 @@
// Verify basic transforms with with various systemId
// and a DOMSource(InputSource(String))
// level0: one level up
- xslNode = docBuilder.parse(new
InputSource(testFileInfo.inputName));
+ reporter.logTraceMsg("about to parse(InputSource(" +
filenameToURL(testFileInfo.inputName) + "))");
+ xslNode = docBuilder.parse(new
InputSource(filenameToURL(testFileInfo.inputName)));
xslSource = new DOMSource(xslNode);
xmlSource = new StreamSource(new
FileInputStream(testFileInfo.xmlName));
@@ -626,7 +627,8 @@
"DOMSource(inpSrc(str)).systemId(level0:
one up)");
// level1: same systemId as actual file
- xslNode = docBuilder.parse(new
InputSource(testFileInfo.inputName));
+ reporter.logTraceMsg("about to parse(InputSource(" +
filenameToURL(testFileInfo.inputName) + "))");
+ xslNode = docBuilder.parse(new
InputSource(filenameToURL(testFileInfo.inputName)));
xslSource = new DOMSource(xslNode);
xmlSource = new StreamSource(new
FileInputStream(testFileInfo.xmlName));
@@ -637,7 +639,8 @@
"DOMSource(inpSrc(str)).systemId(level1:
same level)");
// level2: one level down
- xslNode = docBuilder.parse(new
InputSource(testFileInfo.inputName));
+ reporter.logTraceMsg("about to parse(InputSource(" +
filenameToURL(testFileInfo.inputName) + "))");
+ xslNode = docBuilder.parse(new
InputSource(filenameToURL(testFileInfo.inputName)));
xslSource = new DOMSource(xslNode);
xmlSource = new StreamSource(new
FileInputStream(testFileInfo.xmlName));
@@ -651,7 +654,8 @@
// differently in the constructor - tests that you can
// later call setSystemId and have it work
// level0: one level up
- xslNode = docBuilder.parse(new
InputSource(testFileInfo.inputName));
+ reporter.logTraceMsg("about to parse(InputSource(" +
filenameToURL(testFileInfo.inputName) + "))");
+ xslNode = docBuilder.parse(new
InputSource(filenameToURL(testFileInfo.inputName)));
// Set the original systemId to itself, or level1
xslSource = new DOMSource(xslNode,
filenameToURL(testFileInfo.inputName));