summaryrefslogtreecommitdiff
path: root/tests/general/bug-158.xsl
blob: 3b955dcaaeffdc51edcd1ae5ca1e822a18b75c21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0"
                xmlns:dsl="http://www.decisionsoft.com/website"
                xmlns:html="http://www.w3.org/1999/xhtml"
                xmlns:layout="http://www.decisionsoft.com/website-layout"
                xmlns="http://www.w3.org/1999/xhtml">

<xsl:variable name="myPath" select="/dsl:page/@path" />
<xsl:variable name="layout" select="document('../docs/bug-158.doc')"/>
<xsl:variable name="root"><xsl:value-of select="$layout//layout:page[@path=$myPath]" />
</xsl:variable>

<xsl:template match="/">
myPath is <xsl:value-of select="$myPath" />
root is <xsl:value-of select="$root" />
</xsl:template>

</xsl:stylesheet>