--Solo<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Tr +ansform"> <xsl:output method="html" /> <xsl:template match="/"> <html> <head> <style> body { font-family:Verdana,Arial,Helvetica,sans-serif; } a:link, a:visited { text-decoration: none; } a:hover { text-decoration: underline; } .node_name { font-size: x-small } .parent_node { font-size: xx-small } .root_node { font-size: xx-small } </style> </head> <body> <xsl:variable name="date" select="//INFO/@lastchecked" /> Perl Monks Scroll <span style="font-size: xx-small">created at <xsl:value-of select="substring($date,9,2)" /> : <xsl:value-of select="substring($date,11,2)" /> (in a TZ far, far away)</span> <p /> <xsl:apply-templates select="//NODE" /> </body> </html> </xsl:template> <xsl:template match="NODE"> <span class="node_name"> <a href="http://www.perlmonks.org/index.pl?node_id={@node_id} +" target="perlmonks"> <xsl:value-of select="." /> </a> </span> <xsl:if test="@parent_node"> <span class="parent_node"> <a href="http://www.perlmonks.org/index.pl?node_id={@paren +t_node}" target="perlmonks">[parent]</a> </span> </xsl:if> <xsl:if test="@root_node"> <span class="root_node"> <a href="http://www.perlmonks.org/index.pl?node_id={@root_ +node}" target="perlmonks">[root]</a> </span> </xsl:if> <p /> </xsl:template> </xsl:stylesheet>
In reply to Re: The Perl Monks Scrolls
by Solo
in thread The Perl Monks Scrolls
by Solo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |