[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: generate-d( ) not working

Subject: Re: generate-d( ) not working
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Jul 2003 22:00:51 +0100
xsl current not working



  <xsl:template name="Link" match="//HSS">
you don't want to start a match pattern with // (it doesn't do anything
except change the default priority, it doesn't change the nodes matched)

	<xsl:for-each select=".">
. only selects one node (the current one) so this for-each is iterating
over a list of length 1. Your stylesheet would act in teh same way if
you removed this.
		<img src="texticon.gif"><a href="#{generate-id(HSS)}">
Yout template is matching HSS nodes, and that HSS element is therefore
selecting HSS children of HSS nodes. Your sample input suggested that
HSS was empty. You want the current node not its HSS child,
generate-id(.)


  <xsl:template match="//HSS">
this template matches the same nodes as the first template, with the
same priority, so this is an error, your processor may recover by 
excuting one of them but the other will never be executed.

It's hard to suggest what your match patterns should be as you didn't give
any indication of the transform you are trying to do.

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.