Skip to content

Commit

Permalink
[WIP] Fix up patterns test to XSpec @href for files
Browse files Browse the repository at this point in the history
Per @wendellpiez, this approach is supported in XSpec with @href on a variable instead
of using document('../rel/path/file/xml') using pure XSLT for these kinds of dynamic
relative pathing issues in the test suite.
  • Loading branch information
aj-stein-nist committed Feb 1, 2024
1 parent f97c378 commit 1872001
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Modes to test:
</x:scenario>

<x:scenario label="[B] A simple but valid document (element) copies through">
<x:variable name="valid-file" select="document('../../../computer-valid/valid1.xml')"/>
<x:variable name="valid-file" href="../../computer-valid/valid1.xml"/>
<x:scenario label="[B.1] - A 'computer' document">
<!-- selecting '/' passes the root of the tree in as wanted, instead of the element alone. -->
<x:context select="/">
Expand Down

0 comments on commit 1872001

Please sign in to comment.