Altova Mailing List Archives


RE: [xsl] Multiple search

From: "Wampler, David" <DWampler@------------->
To:
Date: 6/17/2002 8:00:00 AM
I'm using a P4 1.7 GHz, so it can't be that problem.

-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
Sent: Monday, June 17, 2002 9:51 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Multiple search


Which processor are you using? I can't see anything wrong with the code
- see if you get the same problem with a different processor.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Wampler, David
> Sent: 17 June 2002 13:41
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: [xsl] Multiple search
> 
> 
> I've encountered an out of memory problem with the following 
> template. Basically I just want to be able to search for 20 
> different parameters.  The results depend on all parameters.
> 
> <xsl:stylesheet 
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
>     version="1.0">
> 
> <xsl:output method="xml"/>
> <xsl:param name="Element1" select="'*'"/>
> <xsl:param name="Element2" select="'*'"/>
> <xsl:param name="Element3" select="'*'"/>
> ....continues for 20 parameters.
> 
> <xsl:variable name="Element1Nodes" 
> select="Pipelines/Pipeline[$Element1!='*'][Element1=$Element1]
> |Pipelines/Pip
> eline[$Element1='*']"/>
> <xsl:variable name="Element2Nodes" 
> select="$Element1Nodes[$Element2!='*'][Element2=$Element2]|$El
> ement1Nodes[$E
> lement2='*']"/>
> <xsl:variable name="Element3Nodes" 
> select="$Element2Nodes[$Element3!='*'][Element3=$Element3]|$El
> ement2Nodes[$E
> lement3='*']"/>
> .....continues for 20 parameters
> 
> <xsl:template match="/">
> <Pipelines>
> <xsl:call-template name="Pipeline1"/>
> </Pipelines>
> </xsl:template>
> 
> <xsl:template name="Pipeline1">
> <Pipeline>
> <xsl:copy-of select="$Element3Nodes"/>
> </Pipeline>
> </xsl:template>
> 
> </xsl:stylesheet> 
> 
> 
> 
> xml looks like this....
> 
> <Pipelines>
> <Pipeline>
> 	<Element1>data</Element1>
> 	<Element2>data</Element2>
> 	<Element3>data</Element3>
> </Pipeline>
> <Pipeline>
> 	<Element1>data</Element1>
> 	<Element2>data</Element2>
> 	<Element3>data</Element3>
> </Pipeline>
> </Pipelines>
> 
> The user can enter any or all parameters.  If none are 
> entered, it assumes that it will display * (all) for each 
> element.  Any help is greatly appreciated.
> 
> 
> Thanks.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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

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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.