diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-13 11:22:02 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-13 11:22:02 +0900 |
commit | aee72dbc8a3bc08ead76cb808ffa332aa413f2d7 (patch) | |
tree | 14ed1a05c3f7c738934b3381991948def269b7e4 /tests/general/bug-196.xsl | |
parent | 478150ad4e1d828cd9a7e500314d1dd2a273b73e (diff) | |
download | libxslt-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.xsl | 19 |
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> |