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

Problems using the Count function

Subject: Problems using the Count function
From: "Sargeant, Richard (GXS)" <Richard.Sargeant@xxxxxxxxxx>
Date: Tue, 30 May 2000 10:22:42 +0200
count function not working
I'm using the xalan parser and I'm having problems with the count function.


> I have a stylesheet that includes the following ...
> 
> 	<xsl:value-of select="count( //user__common__profile)"/>
> 
> When I invoke the tranformation from the command line using... 
> 
> 	java org.apache.xalan.xslt.Process -IN Users.xml -XSL Users.xsl -OUT
> Users.out
> 
>  it works perfectly but if I try to invoke it with a html page using...
> 
> <script language="JavaScript">
> <!--
>     function transform()
>     {
> 	document.all.pleaseWait.style.display = "";
>     	var target = document.xslControl.getHtmlText();  
>     	insertHTML.outerHTML = target;  
> 	document.all.pleaseWait.style.display = "none";
>     }
> // -->
> </script>
> 
> 	<div id="pleaseWait">
> 		<br/><br/>Generating output, one moment please...
> 	</div>
> 
> 	<div id="insertHTML">
> 	</div>
> 	
>    <applet
>       name="xslControl"
>       code="org.apache.xalan.xslt.client.XSLTProcessorApplet.class"
>       archive="InterLinx/xalan.jar,InterLinx/xerces.jar"
>       height="0"
>       width"0">
>       <param name="documentURL" value="InterLinx/users.xml"/>  <!--default
> setting-->
>       <param name="styleURL" value="Users.xsl"/> <!--doesn't change-->
>    </applet>
> 
> no output appears. If I remove the count function it works perfectly.
> Is the count function not supported in the applet or am I doing something
> wrong ?
> 
> regards
> Richard Sargeant 


 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.