[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: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Apr 2002 15:42:54 +0100
Re:  Upgrade Broke My XSLT
Hi Eric,

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

This says "for each paragraph, apply templates to its paragraph
element children". From the looks of it, you don't have nested
paragraphs, so probably what you were after was actually:

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

(BTW, what did you upgrade from?)

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.