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

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

Subject: RE: assigning value to xsl:variable using xsl:number
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 21 Jan 2005 23:05:35 -0000
xslt assign value to variable
> 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

We all know what XSLT is, but what exactly do you mean by "xsl"? The term is
sometimes used to mean XSLT; it's sometimes used to mean XSL-FO, and it's
sometimes used to mean the old 1998 Microsoft WD-xsl dialect.

If you're trying to get something working under WD-xsl, there are few people
on this list who will admit to knowing anything about it...

Michael Kay
http://www.saxonica.com/


> 
> <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

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.