Share

Tennison Tests ( XSLT Unit Testing)

Tracker: Patches

5 Text of testsuites document used as URI - ID: 1659800
Last Update: Tracker Item Submitted ( tonygraham )

In generate-tests.xsl, using / as the second argument to resolve-uri()
results in the string value of / being used as a URI.

This explains why relative URIs in @stylesheet haven't been working.

Regards,


Tony Graham.

--- generate-tests.xsl~ 2006-07-28 15:27:44.000000000 +0100
+++ generate-tests.xsl 2007-02-14 14:48:12.254270400 +0000
@@ -27,9 +27,9 @@

<xsl:variable name="stylesheet" as="document-node()"
select="if (/test:suite)
- then doc(resolve-uri(/test:suite/@stylesheet, /))
+ then doc(resolve-uri(/test:suite/@stylesheet, base-uri(/)))
else /" />
-
+
<xsl:key name="functions"
match="xsl:function"
use="resolve-QName(@name, .)" />


Tony Graham ( tonygraham ) - 2007-02-14 14:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.