[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] assigning value to xsl:variable using xsl:number

Subject: [xsl] assigning value to xsl:variable using xsl:number
From: Prashant Bhalesain <prashb2000@xxxxxxxxx>
Date: Fri, 21 Jan 2005 12:48:04 -0800 (PST)


I appreciate if somone could help me with this.

I am trying to convet one xml into html.
If i use
xslt i get correct xml result. but if i try same logic
with xsl I dont

<xsl:variable name="listcount">
   <xsl:number level = "multiple" 
          count = "/doc/Attribute./@name=$attrname2]
                   /List/ListMember" format="1" />

This works in xslt but not in xsl. means I get proper
value of listcount. is there any work around?



Here is the xml I am using.-
 <Attribute name="ECNType" type="List">
  <ListMember>Non-Bom Change</ListMember> 
  <ListMember>Bom Change</ListMember> 
  <ListMember>Initial Release</ListMember> 
 <Attribute name="ECNNumber" type="List">
 <Attribute name="RFQNumber" type="List">

Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 

Current Thread