xsl-list
[Top] [All Lists]

Re: Re: Recursive calls to a named template

2003-11-20 13:20:13
On Thursday 20 November 2003 19:13, cknell(_at_)onebox(_dot_)com wrote:

I tried your solution, which sounds like a better tack than
the one I proposed, but no <signature> elements were copied
from related <group> elements.


Maybe I misunderstood what Ram was trying to achieve. In the 
output below the signature elements have been replaced by 
following the identifier mapping in the XML. In this example 
they all end up with the signature from the first group. The 
output shown is consistent with my interpretation of the problem 
he was trying to solve. Was something different required?

Kev.


and here is the output:
=================
<?xml version = '1.0' encoding = 'UTF-8'?>
<formatted-xml>
  <group>
    <identifier>a</identifier>
    <signature>signature
      <identifier>DNSQuery1</identifier>
      <in>in
        <long>long</long>
        <identifier>ant</identifier>
      </in>
   </signature>
  </group>

  <group>
    <identifier>b</identifier>
    <identifier>a</identifier>
    <signature>signature
      <identifier>DNSQuery1</identifier>
      <in>in
        <long>long</long>
        <identifier>ant</identifier>
      </in>
   </signature>
  </group>

  <group>
    <identifier>c</identifier>
    <identifier>b</identifier>
    <signature>signature
      <identifier>DNSQuery1</identifier>
      <in>in
        <long>long</long>
        <identifier>ant</identifier>
      </in>
   </signature>
  </group>
</formatted-xml>

What did I miss in your explanation?


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list