1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-17 03:22:14 +03:00
Files
libxslt/tests/general/bug-158.xsl
Nick Wellnhofer 971d5c4dd1 tests: Port most of the test suite to C
Use runtest.c from libxml2 as a starting point.

This finally allows us to run most of tests with CMake and Autotools
VPATH builds.
2022-09-07 22:18:55 +02:00

20 lines
723 B
XML

<?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('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>