[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Upgrade Broke My XSLT

Subject: RE: Upgrade Broke My XSLT
From: "Dudley, Mark" <Mark.Dudley@xxxxxxxxxxxxx>
Date: Wed, 10 Apr 2002 10:34:30 -0400
broke dudley
Eric,

You don't have any paragraph children in the paragraph element. Try:

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

Mark Dudley
Xerox, Corporation

-----Original Message-----
From: eric [mailto:rico@xxxxxxx]
Sent: Wednesday, April 10, 2002 10:20 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.