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

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


Subject: RE: [xsl] assigning value to xsl:variable using xsl:number
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Fri, 21 Jan 2005 16:42:59 -0600

Hi Prashant,

> This works in xslt but not in xsl.

What do you mean by that?

Cheers,
<prs/>

-----Original Message-----
From: Prashant Bhalesain [mailto:prashb2000@xxxxxxxxx] 
Sent: Viernes, 21 de Enero de 2005 02:48 p.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] assigning value to xsl:variable using xsl:number

Hello

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" /> </xsl:variable>

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

TIA.

Prashant

Here is the xml I am using.-
 <doc>
 <Attribute name="ECNType" type="List">
 <List>
  <ListMember>Non-Bom Change</ListMember>
  <ListMember>Bom Change</ListMember>
  <ListMember>Initial Release</ListMember>
  </List>
  </Attribute>
 <Attribute name="ECNNumber" type="List">  <List>
  <ListMember>ECN100001</ListMember>
  <ListMember>ECN100002</ListMember>
  <ListMember>ECN100003</ListMember>
  </List>
  </Attribute>
 <Attribute name="RFQNumber" type="List">  <List>
  <ListMember>RFQ12002</ListMember>
  <ListMember>RFQ11001</ListMember>
  <ListMember>RFQ12343</ListMember>
  </List>
  </Attribute>
  </doc>



		
__________________________________
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 


Current Thread
Keywords