[xsl] axis specifier issue

Subject: [xsl] axis specifier issue
From: a kusa <akusa8@xxxxxxxxx>
Date: Thu, 29 Oct 2009 17:31:01 -0500
Hi:

I have an input file like this:

<prt1>
<note>this is a sample note</note>
<desc>sample desc</desc>
<note>note at the end of desc </note>
      <prt2>
           <text>sample text</text>
      </prt2>
</prt1>

Now I want to transform this so that the <note> <note>note at the end
of desc </note> comes right under <prt2>.

So:

<prt1>
<note>this is a sample note</note>
<desc>sample desc</desc>
      <prt2>
<note>note at the end of desc </note>
           <text>sample text</text>
      </prt2>
</prt1>

But when I use preceding-sibling, it pulls <note>this is a sample note</note>
into <prt2> as well.

Can anybody help me here?

Thanks in advance.

Current Thread