|
Subject: Re: [xsl] Upgrade Broke My XSLT From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 10 Apr 2002 15:42:54 +0100 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Upgrade Broke My XSLT, David Carlisle | Thread | RE: [xsl] Upgrade Broke My XSLT, Dudley, Mark |
| Re: [xsl] namespace declaration, Jeni Tennison | Date | [xsl] How do we call Javascript fun, Deshpande, Gururaj |
| Month |