dmarston 00/12/21 10:03:46
Modified: test/tests/conf/expression expression02.xsl expression02.xml
Log:
Revise test to get results that are independent of the
environment in which it's run.
Revision Changes Path
1.2 +4 -1 xml-xalan/test/tests/conf/expression/expression02.xsl
Index: expression02.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/expression/expression02.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- expression02.xsl 2000/12/15 19:39:38 1.1
+++ expression02.xsl 2000/12/21 18:03:43 1.2
@@ -6,10 +6,13 @@
<!-- DocVersion: 19991116 -->
<!-- Section: 12.4 -->
<!-- Purpose: Invoke unparsed-entity-uri function -->
+ <!-- To avoid dealing with the top of the file path,
+ we just look for the part of the returned value that's in the supplied
data. -->
<xsl:template match="doc">
<out>
- <xsl:value-of select="unparsed-entity-uri('hatch-pic')"/>
+ <xsl:value-of select="contains(
+ unparsed-entity-uri('hatch-pic'),'grafix/OpenHatch.gif')"/>
</out>
</xsl:template>
1.2 +2 -5 xml-xalan/test/tests/conf/expression/expression02.xml
Index: expression02.xml
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/expression/expression02.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- expression02.xml 2000/12/15 19:39:38 1.1
+++ expression02.xml 2000/12/21 18:03:44 1.2
@@ -1,12 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE doc [
<!NOTATION gif SYSTEM "../www.foo.com" >
- <!ENTITY hatch-pic
- SYSTEM "../grafix/OpenHatch.gif"
- NDATA gif >
+ <!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif >
<!ELEMENT doc (#PCDATA)>
]>
-
<doc>
-</doc>
\ No newline at end of file
+</doc>
\ No newline at end of file