1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-06 23:49:25 +03:00
Files
libxslt/tests/documents/test.xsl
Daniel Veillard ed83d63ecc added a test for URI-escaping on document() input Daniel
* tests/documents/Makefile.am 'tests/documents/doc file.xml'
  tests/documents/docfile.xml tests/documents/test.result
  tests/documents/test.xml tests/documents/test.xsl:
  added a test for URI-escaping on document() input
Daniel
2001-07-08 18:45:45 +00:00

17 lines
495 B
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" encoding="iso-8859-1"/>
<xsl:template match="/files/file">
<xsl:variable name="file" select="document(@name)"/>
<xsl:if test="not($file)">
<xsl:text>Can't Open File: </xsl:text>
<xsl:value-of select="@name"/>
</xsl:if>
<xsl:value-of select="$file/tag1"/>
</xsl:template>
</xsl:stylesheet>