Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add demo's xmp_page_b static files

  • Loading branch information...
commit 70f3552b76525a1137f576f09720e2c71e46f32a 1 parent 4f403dd
@kaven276 authored
View
15 static/demo/packs/xml_page_b/user_table.css
@@ -0,0 +1,15 @@
+body {
+ text-align:center;
+}
+table {
+ border:1px solid orange;
+ border-collapse:collapse;
+ text-align:left;
+ margin-top:10em;
+}
+table tr.black {
+ background-color:yellow;
+}
+table tr td {
+ padding:10px;
+}
View
28 static/demo/packs/xml_page_b/users.xsl
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
+ <xsl:template match="/users">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
+ <title>Untitled Document</title>
+ </head>
+ <body>
+ <h3> server side xslt transform has bug </h3>
+ <table id="t" border="1" style="border-collapse:collapse;">
+ <xsl:for-each select="user">
+ <tr>
+ <td><xsl:value-of select="USER_NAME"/></td>
+ <td><xsl:value-of select="USER_ID"/></td>
+ <td><xsl:value-of select="PASSWORD"/></td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ <script>
+ <![CDATA[t.onclick = function() { alert('clicked table'); }]]>
+ </script>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:stylesheet>
View
26 static/demo/packs/xml_page_b/users2.xsl
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
+ <xsl:template match="/users">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
+ <title>Untitled Document</title>
+ </head>
+ <body>
+ <table id="t" border="1" style="border-collapse:collapse;">
+ <xsl:for-each select="./user">
+ <tr>
+ <td><xsl:value-of select="USER_NAME"/></td>
+ <td><xsl:value-of select="USER_ID"/></td>
+ <td><xsl:value-of select="PASSWORD"/></td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ <script>
+ t.onclick = function() { alert("clicked table"); }
+ </script>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
View
13 static/demo/packs/xml_page_b/users_ol.css
@@ -0,0 +1,13 @@
+users {
+ display:block;
+ list-style:upper-alpha outside;
+ margin:1em;
+}
+user {
+ display:list-item;
+ line-height:2em;
+}
+user_seq, user_id, user_name, password {
+ display:inline;
+ border-bottom:1px solid gray;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.