summaryrefslogtreecommitdiff
path: root/tests/general/bug-196.xsl
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-09-13 11:22:02 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-09-13 11:22:02 +0900
commitaee72dbc8a3bc08ead76cb808ffa332aa413f2d7 (patch)
tree14ed1a05c3f7c738934b3381991948def269b7e4 /tests/general/bug-196.xsl
parent478150ad4e1d828cd9a7e500314d1dd2a273b73e (diff)
downloadlibxslt-aee72dbc8a3bc08ead76cb808ffa332aa413f2d7.tar.gz
libxslt-aee72dbc8a3bc08ead76cb808ffa332aa413f2d7.tar.bz2
libxslt-aee72dbc8a3bc08ead76cb808ffa332aa413f2d7.zip
Imported Upstream version 1.1.35upstream/1.1.35
Diffstat (limited to 'tests/general/bug-196.xsl')
-rw-r--r--tests/general/bug-196.xsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/general/bug-196.xsl b/tests/general/bug-196.xsl
new file mode 100644
index 00000000..d5030f28
--- /dev/null
+++ b/tests/general/bug-196.xsl
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:template match="node()|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="node()|@*" />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="processing-instruction()">
+ <xsl:processing-instruction name="{name()}">
+ <xsl:value-of select="."/>
+ <xsl:text> id="</xsl:text>
+ <xsl:number count="processing-instruction()" level="any" />
+ <xsl:text>"</xsl:text>
+ </xsl:processing-instruction>
+ </xsl:template>
+
+</xsl:stylesheet>