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

Defining a key on a RTF inside a Template

Subject: Defining a key on a RTF inside a Template
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Wed, 8 Dec 2004 00:08:22 -0800 (PST)
marianne a. baisak
I am creating  a key inside a template with RTF as
below:
<xsl:variable name="projectSum">
	<xsl:for-each select="//project">
		<xsl:variable name="projectname" select="./@name"/>
		<xsl:variable name="projectid" select="@id"/>
		<xsl:variable name="projectref"
select="projectelement/@ref"/>
		<xsl:copy>
			<xsl:copy-of select="./@name"/>
			<xsl:copy-of select="./@id"/>
			<projectsum>
				<xsl:copy-of
select="count(key('ProjectPartNumber',$projectref))"/>
			</projectsum>
		</xsl:copy>
	</xsl:for-each>
</xsl:variable>

<xsl:key name="countDetail"
match="exslt:node-set($projectSum)/projectsum"
use="./@id"/>

In XALAN it throws error with message "Incorrect place
of defining Key".
I am not sure whether it is possible to create a key
with RTF within a template?
If not possible, is there any otherway to achive the
same functionality?

regards,
Ranjan



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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.