Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: selecting similar data

From: DennisOwen@-----------.---------.---
To: NULL
Date: 11/20/2008 5:29:00 AM
Figured out how to do it.  Dimitre's suggestion made me think a little harder 
and I came up with this.

<xsl:for-each select="class[grade=concat($grade, '*') or grade=$grade]">

"Dennis Owen" wrote:

> That works fine unless someone enters a 1, then they get all 1, 10, 11, etc. 
> I'll have to check the data to see if that is possible.
> 
> Thanks.
> 
> "Dimitre Novatchev" wrote:
> 
> > 
> > "Dennis Owen" <DennisOwen@d...> wrote in message 
> > news:8C13BD5C-3F7E-4339-8044-091E7FA5607C@m......
> > >I have a production xsl file that I need to edit to change the selection
> > > behavior on one of the fields.  The user can search on a grade like "17" 
> > > and
> > > the xsl returns all nodes with grades = 17.  What I need is for the xsl to
> > > return all the "17" and "17*" grades when 17 is entered by the user.
> > >
> > > The current code is like
> > >
> > > <xsl:for-each select="class[grade=$grade]">
> > >
> > 
> > 
> > Use:
> > 
> >    class[starts-with(grade, $grade)]
> > 
> > 
> > 
> > Cheers,
> > Dimitre Novatchev 
> > 
> > 
> > 


transparent
Print
Mail
Like It
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.

.
.

transparent

transparent