This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: Unwrapping trees
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 14 Jun 2002 10:57:54 +0100
- Subject: Re: [xsl] Re: Unwrapping trees
- Organization: Jeni Tennison Consulting Ltd
- References: <20020613180518.30420.qmail@web14510.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Dimitre,
> The following transformation:
[snip]
Next challenge... Using the stylesheet you recommended on the
following:
unwrapB.xml:
-----------
<p>
text1
<a href="1">
text2
<span>
<a href="2">
text3
<a href="3">text4</a>
text5
</a>
text6
</span>
text7
<span>
<a href="4">text8</a>
text9
</span>
text10
</a>
text11
</p>
produces:
<p>
text1
<a href="1">
text2
text7
</a>
<span>
<a href="2">
text3
<a href="3">text4</a>
text5
</a>
text6
</span>
<span>
<a href="4">text8</a>
text9
</span>
<a href="1">
text7
text10
</a>
text11
</p>
I'm guessing, but I think Norm would like it to produce:
<p>
text1
<a href="1">
text2
</a>
<span>
<a href="2">
text3
</a>
<a href="3">text4</a>
<a href="2">
text5
</a>
text6
</span>
<a href="1">
text7
</a>
<span>
<a href="4">text8</a>
text9
</span>
<a href="1">
text10
</a>
text11
</p>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list