Skip to content

Commit

Permalink
annotations and tracking information added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Mar 29, 2012
1 parent 0265e61 commit 71faf5e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/webapp/xslt/xmlInfo2xhtml.xsl
Expand Up @@ -91,6 +91,14 @@ Yanel reserved prefix: <xsl:value-of select="$yanel.reservedPrefix"/>
-->
<xsl:apply-templates select="/yanel:yanel/resource"/>
<xsl:apply-templates select="child::node()/revisions"/>

<h4>Annotations</h4>
<xsl:apply-templates select="/yanel:yanel/yanel:annotations"/>
<xsl:apply-templates select="/yanel:yanel/yanel:no-annotations-yet"/>

<h4>Tracking Information (Interest, Page type, Custom fields)</h4>
<xsl:apply-templates select="/yanel:yanel/yanel:tracking-info"/>
<xsl:apply-templates select="/yanel:yanel/yanel:no-tracking-information"/>
</div>
</td>
</tr>
Expand Down Expand Up @@ -174,6 +182,32 @@ Yanel reserved prefix: <xsl:value-of select="$yanel.reservedPrefix"/>
<li>Last modified: <xsl:apply-templates/></li>
</xsl:template>

<xsl:template match="yanel:annotations">
<ul>
<xsl:for-each select="yanel:annotation">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
</xsl:template>

<xsl:template match="yanel:no-annotations-yet">
<p>No annotations yet.</p>
</xsl:template>

<xsl:template match="yanel:tracking-info">
<ul>
<xsl:for-each select="yanel:interests/yanel:interest">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
<p>Page type: <xsl:value-of select="yanel:page-type"/></p>
<p>Custom fields: TODO</p>
</xsl:template>

<xsl:template match="yanel:no-tracking-information">
<p>No tracking information.</p>
</xsl:template>

<xsl:template match="revisions">
<li>Revisions:
<table border="1" cellspacing="0">
Expand Down

0 comments on commit 71faf5e

Please sign in to comment.