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

Re: apply-templates iside for-each?

Subject: Re: apply-templates iside for-each?
From: Colin Muller <colin@xxxxxxxxxxxxxx>
Date: Sat, 04 Nov 2000 15:44:18 +0800
apply templates inside for each
Norman Walsh wrote:
> 
> Presented with this construction:
> 
>   <xsl:for-each select="child::*">
>     <xsl:variable name="x.ischunk">
>       <xsl:call-template name="chunk"/>
>     </xsl:variable>
>     <xsl:if test="$x.ischunk != 0">
>       <xsl:apply-templates select="."/>
>     </xsl:if>
>   </xsl:for-each>
> 
> XT complains:
> 
>   file:book2.xml:6: xsl:apply-templates inside xsl:for-each
> 
> That's an XT bug, right? Or am I overlooking something?

Maybe a template selected by your apply-templates attempts to do an
apply-imports? The error message appears to be a typo in the XT code -
unless I'm misunderstanding that code , the relevant snippet of which
appears to be (from tr/ProcessContextImpl.java):

  public void applyImports(Node node, Result result) throws XSLException
{
    if (actionForEachLevels != null
        && actionForEachLevels[nOpenActions - 1] > 0)
      throw new XSLException("xsl:apply-templates inside xsl:for-each",
node);
[etc]

Colin


 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.