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

RE: XSL puzzle

Subject: RE: XSL puzzle
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 7 Mar 2001 21:06:57 -0000
RE:  XSL puzzle
> 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>&#xA; </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)

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.