backed out the last change and re-did it the "right way" (bug 158372).
[platform/upstream/libxslt.git] / tests / general / bug-158.xsl
1 <?xml version="1.0" ?>
2
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0"
4                 xmlns:dsl="http://www.decisionsoft.com/website"
5                 xmlns:html="http://www.w3.org/1999/xhtml"
6                 xmlns:layout="http://www.decisionsoft.com/website-layout"
7                 xmlns="http://www.w3.org/1999/xhtml">
8
9 <xsl:variable name="myPath" select="/dsl:page/@path" />
10 <xsl:variable name="layout" select="document('../docs/bug158.doc')"/>
11 <xsl:variable name="root"><xsl:value-of select="$layout//layout:page[@path=$myPath]" />
12 </xsl:variable>
13
14 <xsl:template match="/">
15 myPath is <xsl:value-of select="$myPath" />
16 root is <xsl:value-of select="$root" />
17 </xsl:template>
18
19 </xsl:stylesheet>