Subject: RE: [xsl] Nodes between two nodes with the same name (again :-( From: "Smirnov, Anatoliy" <anatoliy.smirnov@xxxxxxxxxxx> Date: Tue, 6 May 2003 11:07:31 -0400 |
Juergen, This way I am getting <ROWSET> <ROW> <HEADER> Header </HEADER> <BODY/> </ROW> ABC <ROW> <HEADER> Header </HEADER> <BODY/> </ROW> DEF </BODY> <ROWSET> I need to have the ABC and DEF 'inside' the BODY tag as in <BODY> ABC </BODY> ... <BODY> DEF </BODY> Thank you. Anatoliy -----Original Message----- From: Zink, Juergen [mailto:Juergen.Zink@xxxxxxxxxxxxxxxxxxxx] Sent: Tuesday, May 06, 2003 9:59 AM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: AW: [xsl] Nodes between two nodes with the same name (again :-( Importance: Low >I need to output all nodes between two nodes with the same name, so that >from the node <h> becomes the HEADER and all nodes after <h> until the next ><h> become the BODY. The source file is: <snip> > <xsl:apply-templates select="following-sibling::*[generate-id(following-sibling::html/body/h[1])= generate-id(current()/following-sibling::html/body/h[1])]"/> Try the following select: <xsl:apply-templates select="following-sibling::*[generate-id(.)= generate-id(current()/following-sibling::html/body/h[1])]"/> <snip> Cheers, Juergen **************************************************************************** * Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. **************************************************************************** * XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Nodes between two nodes w, Américo Albuquerque | Thread | [xsl] Tables interactive, John Proctor |
RE: [xsl] EXSLT, Jim Fuller | Date | Re: [xsl] Newline problems, Mike Brown |
Month |