RE: [xsl] xsl:number problem

Subject: RE: [xsl] xsl:number problem
From: "Yan, Charlene" <Charlene.Yan@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2003 16:19:05 -0400
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] 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