summaryrefslogtreecommitdiff
path: root/tests/XSLTMark/dbsql50.xsl
diff options
context:
space:
mode:
authorMyoungJune Park <mj2004.park@samsung.com>2016-06-29 14:28:51 +0900
committerMyoungJune Park <mj2004.park@samsung.com>2016-06-29 14:29:13 +0900
commit8737843a4d457b79d3c6abbc17fbf97b81a8861e (patch)
tree6229a8587d64a3a76c297f63d3eead8ffb51a14d /tests/XSLTMark/dbsql50.xsl
parentc3bb6b2f10204be6970bfbaa50f9e96e184d505f (diff)
parentc582450a479ff157cf79aed26b6b08e867ff3832 (diff)
downloadlibxslt-8737843a4d457b79d3c6abbc17fbf97b81a8861e.tar.gz
libxslt-8737843a4d457b79d3c6abbc17fbf97b81a8861e.tar.bz2
libxslt-8737843a4d457b79d3c6abbc17fbf97b81a8861e.zip
Merge branch 'tizen_base' into tizen
Change-Id: I412621219c0ed82145d1a03b5bbe474646fcf0ef Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
Diffstat (limited to 'tests/XSLTMark/dbsql50.xsl')
-rw-r--r--tests/XSLTMark/dbsql50.xsl45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/XSLTMark/dbsql50.xsl b/tests/XSLTMark/dbsql50.xsl
deleted file mode 100644
index d6fa967b..00000000
--- a/tests/XSLTMark/dbsql50.xsl
+++ /dev/null
@@ -1,45 +0,0 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-<xsl:template match="table">
- <document>
- <!-- select * from table where id = ... -->
- <xsl:apply-templates select="row[id=3]"/>
- <xsl:apply-templates select="row[id=13]"/>
- <xsl:apply-templates select="row[id=23]"/>
- <xsl:apply-templates select="row[id=33]"/>
- <xsl:apply-templates select="row[id=43]"/>
- <!-- select * from table where id > ... and id < ... -->
- <xsl:apply-templates select="row[id&gt;4 and id&lt;8]"/>
- <xsl:apply-templates select="row[id&gt;14 and id&lt;18]"/>
- <xsl:apply-templates select="row[id&gt;24 and id&lt;28]"/>
- <xsl:apply-templates select="row[id&gt;34 and id&lt;38]"/>
- <xsl:apply-templates select="row[id&gt;44 and id&lt;48]"/>
- <!-- select * from table where firstname = 'Bob' -->
- <xsl:apply-templates select="row[firstname='Bob']"/>
- <!-- select firstname, lastname from table where id=... -->
- <xsl:for-each select="row[id mod 10 = 9]">
- <xsl:apply-templates select="firstname"/>
- <xsl:apply-templates select="lastname"/>
- </xsl:for-each>
- </document>
-</xsl:template>
-
-<xsl:template match="row">
- <xsl:apply-templates select="id"/>
- <xsl:apply-templates select="firstname"/>
- <xsl:apply-templates select="lastname"/>
- <xsl:apply-templates select="street"/>
- <xsl:apply-templates select="city"/>
- <xsl:apply-templates select="state"/>
- <xsl:apply-templates select="zip"/>
- <xsl:text>&#x0A;</xsl:text>
-</xsl:template>
-
-<xsl:template match="id|firstname|lastname|street|city|state|zip">
- <xsl:value-of select="name(.)"/>
- <xsl:text>=</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>&#x0A;</xsl:text>
-</xsl:template>
-
-</xsl:stylesheet>