summaryrefslogtreecommitdiff
path: root/info/examples/lwc/ch7/any.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/lwc/ch7/any.xsl')
-rw-r--r--info/examples/lwc/ch7/any.xsl25
1 files changed, 25 insertions, 0 deletions
diff --git a/info/examples/lwc/ch7/any.xsl b/info/examples/lwc/ch7/any.xsl
new file mode 100644
index 0000000000..ecbb646198
--- /dev/null
+++ b/info/examples/lwc/ch7/any.xsl
@@ -0,0 +1,25 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
+<xsl:template match="/">
+ <xsl:text>(*root*)</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>(/*root*)</xsl:text>
+</xsl:template>
+<xsl:template match="*" priority="-1">
+ <xsl:text>(*)</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>(/*)</xsl:text>
+</xsl:template>
+<xsl:template match="*[position()=1 and position()=last()]" priority="1">
+ <xsl:text>($)</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>(/$)</xsl:text>
+</xsl:template>
+</xsl:stylesheet>
+
+
+
+
+
+
+