github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-158.xsl (about)

     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/bug-158.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>