diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-01 10:26:57 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-01 10:26:57 +0000 |
| commit | ba9b0e647bff1bf0c437ab204ddf11783ed698f8 (patch) | |
| tree | 1952ebfdc40ae71a3bc54eb10a92a0fe1e8273ec /docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl | |
| parent | bc0698e1ac67106346d8c006bddcb38370f7c16b (diff) | |
| download | pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.gz pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.bz2 pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.zip | |
Merge "c-free" branch to trunk.
Diffstat (limited to 'docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl')
| -rw-r--r-- | docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl b/docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl deleted file mode 100644 index 2406987d0..000000000 --- a/docs/tutorials/lxmlgraph/step04/myapp/xsltview.xsl +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:param name="contextid">n1</xsl:param> - <xsl:variable name="contextnode" select="id($contextid)"/> - <xsl:template match="/"> - <html> - <head> - <title> - <xsl:value-of select="$contextnode/title"/> - </title> - </head> - <body> - <h2> - <xsl:value-of select="$contextnode/title"/> - </h2> - <xsl:apply-templates select="$contextnode"/> - <table border="1" cellpadding="6" cellspacing="0"> - <tr> - <th>Type</th> - <th>@xml:id</th> - <th>@name</th> - <th>Parent Type</th> - <th>Parent @name</th> - </tr> - <tr> - <td> - <xsl:value-of select="name($contextnode)"/> - </td> - <td> - <xsl:value-of select="$contextnode/@xml:id"/> - </td> - <td> - <xsl:value-of select="$contextnode/@name"/> - </td> - <td> - <xsl:value-of select="name($contextnode/..)"/> - </td> - <td> - <xsl:value-of select="$contextnode/../@name"/> - </td> - </tr> - </table> - </body> - </html> - </xsl:template> - <xsl:template match="folder"> - <p> - <em>Folders are special, they contain things.</em> - </p> - <xsl:if test="*[@xml:id]"> - <h2>Folder Contents</h2> - <ul> - <xsl:for-each select="*[@xml:id]"> - <li> - <a href="{../@name}/{@name}"> - <xsl:value-of select="title"/> - </a> - </li> - </xsl:for-each> - </ul> - </xsl:if> - </xsl:template> - <xsl:template match="document"> - <p> - <em>Documents contain text.</em> - </p> - <xsl:copy-of select="body/*"/> - </xsl:template> -</xsl:stylesheet> |
