2 <?xml-stylesheet type="text/xsl" href="#stylesheet"?>
4 <!ELEMENT xsl:stylesheet ANY>
5 <!ATTLIST xsl:stylesheet id ID #REQUIRED>
9 <xsl:stylesheet version="1.0" id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10 <xsl:output method="html"/>
11 <xsl:template match="xsl:stylesheet"/>
13 <xsl:variable name="method1">file:resources/findme.xml</xsl:variable>
14 <xsl:variable name="method2">resources/findme.xml</xsl:variable>
16 <xsl:template match="doc">
19 <title>Testing Webkit</title>
23 <p>Here is an attempt to extract the string "Hello, Webkit!" from the file findme.xml:</p>
25 <p>using document('<xsl:value-of select="$method1"/>'):
26 <xsl:value-of select="document($method1)/foo/bar"/></p>
27 <p>using document('<xsl:value-of select="$method2"/>'):
28 <xsl:value-of select="document($method2)/foo/bar"/></p>