Subject: Re: Re: Recursive calls to a named template
From: Kevin Jones <kjones@xxxxxxxxxxx>
Date: Thu, 20 Nov 2003 20:20:13 +0000
|
On Thursday 20 November 2003 19:13, cknell@xxxxxxxxxx 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
| Current Thread |
- Recursive calls to a named template
- Ram - Thu, 20 Nov 2003 08:28:47 -0500 (EST)
- <Possible follow-ups>
- cknell - Thu, 20 Nov 2003 14:13:59 -0500 (EST)
- Kevin Jones - Thu, 20 Nov 2003 15:20:21 -0500 (EST) <=
- cknell - Thu, 20 Nov 2003 15:42:18 -0500 (EST)
- Ram - Fri, 21 Nov 2003 03:44:31 -0500 (EST)
|
|