Well, I can't figure out how to edit my root node, so here's a reply with the XSLT file.

<?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>
--Solo

In reply to Re: The Perl Monks Scrolls by Solo
in thread The Perl Monks Scrolls by Solo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.