xsl-list
[Top] [All Lists]

Re: [xsl] axis specifier issue

2009-10-30 11:42:05
What I want is that any <note> element that is below <desc> and before<prt2>
to be pushed under <prt2>.



On 10/29/09, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

You are ot giving us many clues as to what criterion you are trying to
encode which decides which notes to move, but note the
preeeeceding-sibling axis selcts all preceding siblings, perhaps you
just want the closest, so that's

preceding-sibling::*[1]
or, if you just want the closest sibling if it is a note,
preceding-sibling*[1][self::note]

David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--