- From: David A. Lee <dlee@calldei.com>
- Date: Mon, 29 Dec 2008 15:09:50 -0500
- To: "XProc Dev" <xproc-dev@w3.org>
- Message-ID: <62C26C8216F14BA2BF62B9F1936C9876@calldei.com>
I have discovered that some tests have changed (I think recently) with a "hidden" assumption that the tests are being run referenced from the web and the base URI of the test itself is a http: address and this magically is propogated into the test results as the required output. Example: add-xml-base-001.xml Input source USED to be <p:input port="source"> <p:document href="http://tests.xproc.org/tests/doc/xml-base-test.xml"/> </p:input> Now Input source IS: <p:input port="source"> <p:document href="../doc/xml-base-test.xml"/> </p:input> Yet the output expected is: <doc xml:base='http://tests.xproc.org/tests/doc/xml-base-test.xml'> ... ------------------------------- This means that a test run (for example my current test scripts) which used to work fail. Thats OK by itself ... but analizing this ... how am I supposed to know that the relative href for this test "../doc/xml-base-test.xml" is supposed to be hard-coded to 'http://tests.xproc.org/tests/doc/xml-base-test.xml' Right now my tests are "Correctly" interpreting the relative URI as a file based URI and producing correct results (IMHO) but fail the test. <doc xml:base="file:///C:/Work/DEI/xmlsh/extensions/xproc/tests/doc/xml-base-test.xml"> because the tests dont magically know that they were supposed to exist elsewhere. --------- Is it now an implicit requirement that all tests must be run such that their base URI is pre-set to http://tests.xproc.org/tests so that any relative URI's are resolved against this magic URL instead of wherever the tests actually exist ? I liked it the way it was before where there were no such hidden requirements. Making the input URL's relative is great, but only if you can somehow manage comparing the outputs so they dont depend on the previous assumptions. -David ----------------------------------------------------------- David A. Lee dlee@calldei.com http://www.calldei.com http://www.xmlsh.org
Received on Monday, 29 December 2008 20:10:26 UTC