|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: More efficient way than following-sibling?
Michael,
This is not all that big a deal, but what you have is much the same as: <xsl:apply-templates select="$TheNode/following-sibling::*[1]" mode="generic"/> and then, instead of a template called by name, a mode: <xsl:template match="*" mode="generic"> ... </xsl:template> This will work since the apply-templates will simply fail in the event that no first following sibling element exists. So you don't have to wrap the call in a conditional. Is that something like what you were after? But it's the following:: axis that's the real killer, not following-sibling::. Cheers, Wendell At 02:45 PM 3/20/2002, you wrote: I am trying to find a more efficient way to determine if a node has siblings, and then access the next sibling. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== 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
|

Cart








