This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Upgrade Broke My XSLT


We recently upgraded our XSLT parser and now many of our scripts are not
working.  Does anyone have an idea why this is not working?  The names will
show up formatted with no paragraphs beneath them (i've removed the
content).

XSL::

<xsl:template match="bios">
  <xsl:for-each select="bio">
    <xsl:apply-templates select="name"/>
    <xsl:for-each select="paragraph">
      <xsl:apply-templates select="paragraph"/>
    </xsl:for-each>
  </xsl:for-each>
</xsl:template>

<xsl:template match="name">
  <hr size="1" color="#000000" />
  <span class="bioname"><a name="{@anchor}"><xsl:value-of select="."
/></a></span>
  <hr color="#000000" size="1" />
</xsl:template>

<xsl:template match="paragraph">
  <p class="regular">
    <xsl:apply-templates select="*"/>
  </p>
</xsl:template>

XML::

    <bios>
      <bio>
        <name>
          Dan Quayle
        </name>
        <paragraph>
          <image src="images/pam.jpg" align="left"/>...
        </paragraph>
        <paragraph>
          ...
        </paragraph>
        <paragraph>
          ...
        </paragraph>
        <paragraph>
          ...
        </paragraph>
        <paragraph>
          Prior ...
        </paragraph>
      </bio>
      <bio>
        <name>
          Bill Clinton
        </name>
        <paragraph>
          ...
        </paragraph>
        <paragraph>
          ...
        </paragraph>
      </bio>
    </bios>


Eric


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]