Subject: [xsl] Selecting a range of siblings between specified elements: resend From: David Holden <dh@xxxxxxxx> Date: Mon, 8 Mar 2004 14:03:27 +0000 |
Hello, I'm currently a little puzzled on how to select a range of siblings between specified elements, e.g. <?xml version="1.0"?> <doc> <a>cont1</a><b/><b/> <a>cont2</a><b/><b/> <a>cont3</a><b/><b/><c/><c/> <a>cont4</a><b/><b/><c/><c/> </doc> I would like to select firstly the <b/><b/> of <a>cont1</a><b/><b/> then the <b/><b/> of <a>cont2</a><b/><b/> then the <b/><b/> of <a>cont3</a><b/><b/><c/><c/> and finally the <b/><b/> of <a>cont4</a><b/><b/><c/><c/> So: /doc/a[1]/following-sibling::* will select all elements after the first <a> how do I reduce this to just the <b/><b/> before the second <a> and similarly for the <b/><b/> between the all the other <a>'s. thanks. Dave. -- Dr. David Holden. (Systems Developer) Crystallography Journals Online: <http://journals.iucr.org> Thanks in advance:- Please avoid sending me Word or PowerPoint attachments. See: <http://www.fsf.org/philosophy/no-word-attachments.html> UK Privacy (R.I.P) : http://www.stand.org.uk/commentary.php3 Public GPG key available on request. ------------------------------------------------------------- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting a range of sib, Jarno . Elovirta | Thread | RE: [xsl] Selecting a range of sibl, Kenny Akridge |
[xsl] Selecting a range of siblings, David Holden | Date | RE: [xsl] Selecting a range of sibl, Kenny Akridge |
Month |