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

RE: Query string syntax

Subject: RE: Query string syntax
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Mon, 7 Jan 2002 14:10:46 -0800 (PST)
query string syntax
--- Michael Kay <michael.h.kay@xxxxxxxxxxxx> wrote:
> > I would like to select all names that have initials not seperated
> by
> > a space. Such as:
> >
> > A.A. Peters
> You mean, all strings containing a dot followed immediately by a
> capital
> letter?
> Then try:
>   test="contains(translate($s, 'ABCDE...Z', 'A'), '.A')"

I found an expression for exactly what I was looking for in your
book. 1st edition p. 514 bottom of the page under Substring.

Now my xsl reads like this:
<xsl:variable name="qq">.</xsl:variable>
  <xsl:for-each select="//C03//CORPNAME">
    <xsl:variable name="getit" select="."/>
    <xsl:variable name="pvnum" select="..//@ID"/>
        <xsl:when test="contains($getit, $qq) and
substring(substring-after($getit, $qq), 2, 1)=$qq">
            <TD><xsl:value-of select="."/></TD>

I got it and it works. I am a little bleary-eyed (small font!), but

Mike F.

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

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

Current Thread


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.
First Name
Last Name
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.