ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

RE: xsl:number problem

Subject: RE: xsl:number problem
From: "Yan, Charlene" <Charlene.Yan@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2003 16:19:05 -0400
number problem
All,
I have new question.  The data is changed a little bit:

1.  xml looks like this:
=========================
<solution>
  	<product>
    		<productID>1</productId>
		<publisher>NETg</publisher>
  	</product>
  	<product>
    		<productID>2</productId>
		<publisher>Wave</publisher>
  	</product>
  	<program>
    		<product>
      		<productID>3</productId>
			<publisher>Course</publisher>
    		</product>
    		<product>
      		<productID>4</productId>
			<publisher>Wave</publisher>
    		</product>
  	</program>
  	<product>
    		<productID>5</productId>
		<publisher>NETg</publisher>
  	</product>
</solution>

2.  I want to do a number like <xsl:number level="any" count="productId"/>.  However, I only want to get the xsl:number for productId that has publisher of "NETg" or "Wave".  

3.  Same question is for count(//productId).  How can I do a count of productId that has publisher of "NETg" or "Wave"?

THANKS.

Charlene

-----Original Message-----
From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx]
Sent: Wednesday, June 18, 2003 3:33 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  xsl:number problem


At 02:57 PM 6/18/2003, you wrote:
>I think I know why you are confused about my question.  I am displaying in 
>the spreadsheet some node values from the xml string and some static text 
>added in the stylesheet.  The productId is from the xml 
>string.  "Comments" and "IF XTREME INSTALLATION IS REQUIRED, CHECK THE 
>REQUIRED, SHADED, FORMAT BOX ABOVE" are added in the stylesheet to be 
>displayed on the spreadsheet.  They are not in the node tree.  Position of 
>the static text cells are dynamically decided by the number of productIds 
>in the tree.
>
>Hope this explains it.

It certainly helps. It appears you are pasting to us what you see in the 
spreadsheet after it's opened the results of the transformation, whereas 
we're asking to see a serialized form of that result itself ... the XML of 
the result, that is.

Learn to inspect that and your debugging will be much easier. (In fact, 
unless you do, you'll have trouble getting very far.)

What are you actually opening in your spreadsheet application? Is there a file?

Cheers,
Wendell

___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
     "Thus I make my own use of the telegraph, without consulting
      the directors, like the sparrows, which I perceive use it
      extensively for a perch." -- Thoreau


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


 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.