[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: Nodes between two nodes with the same name (again
>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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|