Subject: RE: [xsl] Is this about grouping ? From: Benoit_Aumars@xxxxxxxxxxxx Date: Tue, 3 Jul 2001 14:21:58 +0100 |
David, Thanks Benoit. > -----Original Message----- > From: David Carlisle [mailto:davidc@xxxxxxxxx] > Sent: 03 July 2001 13:26 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] Is this about grouping ? > > > > > I found the answer :Simply replace : > > <xsl:value-of select="$elements/*/following-sibling::h[1] > > with > > <xsl:value-of select="./*/following-sibling::h > "/> > That's a really odd thing to do. > > Firstly the ./ at the beginning of a select expression never does > anything, so that is the same as > > <xsl:value-of select="*/following-sibling::h"/> > > This selects all children of the current element, and then selects all > their siblings which are h elements. These h elements will also be > children of the current element so this is just > <xsl:value-of select="h"/> > unless the first element is an h in which case it is ommitted. > If you really want that then it's > <xsl:value-of select="*[self::h and position()!=1]"/> > > > David > > _____________________________________________________________________ > This message has been checked for all known viruses by Star Internet > delivered through the MessageLabs Virus Scanning Service. For further > information visit http://www.star.net.uk/stats.asp or > alternatively call > Star Internet for details on the Virus Scanning Service. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > ************************************************************ JLT Management Services Limited 6 Crutched Friars, London EC3N 2PH. Co Reg No 1536540 Tel: (44) (0)20 7528 4000 Fax: (44) (0)20 7528 4500 http://www.jltgroup.com ------------------------------------------------------------ The content of this e-mail (including any attachments) as received may not be the same as sent. If you consider that the content is material to the formation or performance of a contract or you are otherwise relying upon its accuracy, you should consider requesting a copy be sent by facsimile or normal mail. The information in this e-mail is confidential and may be legally privileged. If you are not the intended recipient, please notify the sender immediately and then delete this e-mail entirely - you must not retain, copy, distribute or use this e-mail for any purpose or disclose any of its content to others. Opinions, conclusions and other information in this e-mail that do not relate to the official business of JLT Management Services Limited shall be understood as neither given nor endorsed by it. Please note we intercept and monitor incoming / outgoing e-mail and therefore you should neither expect nor intend any e-mail to be private in nature. We have checked this e-mail for viruses and other harmful components and believe but not guarantee it virus-free prior to leaving our computer system. However, you should satisfy yourself that it is free from harmful components, as we do not accept responsibility for any loss or damage it may cause to your computer systems. ************************************************************ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is this about grouping ?, Wendell Piez | Thread | [xsl] delete empty elements, Michael Zehrer |
Re: [xsl] simple XPath question, James Melton | Date | Re: [xsl] simple XPath question, Wendell Piez |
Month |