Top Level Namespace

Defined Under Namespace

Modules: Wmcd Classes: MultiWmcd, WikiMindCardsDirectory

Constant Summary collapse

KVX_XSL =
<<EOF
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:output method="xml" omit-xml-declaration="yes" />

  <xsl:template match='*'>

   <xsl:apply-templates select='summary' />

    <xsl:element name='div'>
<!--
        <xsl:attribute name='created'>
        <xsl:value-of select='@created'/>
      </xsl:attribute>
      <xsl:attribute name='last_modified'>
        <xsl:value-of select='@last_modified'/>
      </xsl:attribute>
-->
      <xsl:apply-templates select='body' />

      <a href="editcard?title={summary/title}">edit</a>

    </xsl:element>

  </xsl:template>

  <xsl:template match='summary'>

    <h1>
    	<xsl:value-of select='title' />
    </h1>

  </xsl:template>


  <xsl:template match='body'>

    <ul>

    	<li><label>info: </label> <xsl:copy-of select='desc' /></li>
    	<li><label>url: </label> <xsl:value-of select='url' /></li>
    	<xsl:element name='li'>
        <xsl:attribute name='class'><xsl:value-of select='wiki/@class' /></xsl:attribute>
        <label>wiki: </label> <xsl:copy-of select='wiki' />
      </xsl:element>

    </ul>

  </xsl:template>

</xsl:stylesheet>
EOF