You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Sargeant, Richard (GXS)" <Ri...@gxs.ge.com> on 2000/06/03 09:17:49 UTC

FW: Problems with the count function

> Hi,
> 
>    I'm having the following problem and it was suggested I raise it on
> this mailing list. If this is the wrong forum please can someone suggest
> where I could /should look for advise.
> 
> > 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 
>