coding fun!

so this won’t make sense to any of you, but i was pretty proud of myself when i made this. i used various xsl elements to basically have the page pull data from an xml document:


<xsl:variable name="readmore">
    <xsl:when test="@readmore != ''">
      <xsl:value-of select="@readmore" />
      See all <xsl:value-of select="@title" />
<div style="font-size:8pt;">
  <a href="{@url}"><xsl:value-of select="$readmore" /></a>

this is a sample of the xml that it pulls:

<page id="..." title="Newsletters" url="newsletters.asp"
  description="blah blah blah">

so since there isn’t a title attribute to this node, it’ll default to the title. on the page, it’ll say “See all Newsletters”

i made it myself! yay

Related Posts