DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Recursive XSL

  1. #1
    Laurence Hunter Guest

    Recursive XSL



    Can XSL style sheets be written recursively? So that if I have an XML node
    like the following ... I can call ApplyTemplate("//Manager") for the first
    manager and then when the parser comes to the second (inner) manager the
    "manager" template issues the command "ApplyTemplates("//Manager")" to call
    the "manager" template ... and so on?

    <manager>
    <name></name>
    <title></title>
    <manager>
    <division></division>
    </manager>
    </manager>

    Not that this would come up very often.

    Larry





  2. #2
    Russell Jones Guest

    Re: Recursive XSL

    Absolutely.

    "Laurence Hunter" <hunterlmc@hotmail.com> wrote in message
    news:3b17e2b2@news.devx.com...
    >
    >
    > Can XSL style sheets be written recursively? So that if I have an XML

    node
    > like the following ... I can call ApplyTemplate("//Manager") for the first
    > manager and then when the parser comes to the second (inner) manager the
    > "manager" template issues the command "ApplyTemplates("//Manager")" to

    call
    > the "manager" template ... and so on?
    >
    > <manager>
    > <name></name>
    > <title></title>
    > <manager>
    > <division></division>
    > </manager>
    > </manager>
    >
    > Not that this would come up very often.
    >
    > Larry
    >
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center