Subject: RE: XSL puzzle
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 7 Mar 2001 21:06:57 -0000
|
> Pl. help me find why the xsl would not work for the given xml.
> Thanks.
>
> <xslt:template match="customer">
<!-- lots of stuff -->
> <!-- File Systems for the customer -->
>
> <!-- More (nested) File systems -->
> <xslt:apply-templates select="/customer/filesystem"/>
>
> <!-- More (nested) Customers
> <xslt:apply-templates select="/customer"/>
> -->
> <!-- More Customers -->
> <xsl:apply-templates />
>
> <xslt:text>
 </xslt:text>
>
> </xslt:template>
>
Well that looks like an infinite recursion to me. While processing any
customer, you are asking it to process the top-level customer ("/customer").
The comment suggests that you really want "select='customer'"
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- XSL puzzle
- Roshan Sharma - Wed, 7 Mar 2001 14:37:56 -0500 (EST)
- Michael Kay - Wed, 7 Mar 2001 16:04:45 -0500 (EST) <=
- <Possible follow-ups>
- Don Bruey - Wed, 7 Mar 2001 14:54:51 -0500 (EST)
|
|