source: xslt/vendor/current/tests/exslt/common/import-test1.xsl@ 372

Last change on this file since 372 was 372, checked in by Yuri Dario, 13 years ago

xslt: initial vendor import of xslt 1.1.26.

File size: 989 bytes
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2
3<!--
4 Elememtary test for imported exslt stylesheets. This was composed for
5 checking on bug 114812. test-import1.xsl imports test-import1a.imp
6 which in turn imports test-import1b.imp. If successful, f1() should
7 come from this stylesheet, f2() should come from test-import1a.imp,
8 and f3() should come from test-import1b.imp.
9-->
10<xsl:stylesheet
11 version="1.0"
12 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
13 xmlns:exsl="http://exslt.org/common"
14 xmlns:func="http://exslt.org/functions"
15 extension-element-prefixes="exsl func"
16 exclude-result-prefixes="exsl func my"
17 xmlns:my="my://own.uri"
18>
19
20<xsl:import href="import-test1a.imp"/>
21
22<func:function name="my:f1">
23<func:result>
24Func f1 at top level</func:result>
25</func:function>
26
27<xsl:template match="/">
28 <xsl:value-of select="my:f1()"/>
29 <xsl:value-of select="my:f2()"/>
30 <xsl:value-of select="my:f3()"/>
31</xsl:template>
32
33</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.