[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Finding a name and the resulting

Michael Kay mhk at mhk.me.uk
Thu Aug 17 10:24:04 PDT 2006


resulting
> 
> Now I am looking for a name followed by a number.  

Sorry, but what in this input is the "name", and what is the "number"?
> 
> <td align="left" colspan="1" rowspan="1" valign="TOP" 
> width="200"> <b>Bob Stevens:
> </b>
> </td>
> <td align="center" colspan="1" rowspan="1" valign="TOP" 
> width="75"> <b/> <p class="purple"> <b>
> 
> <b>SCMM9</b>
> </b>
> </p>
> <b>
> </b>
> </td>
> 
> Other pages have varying numbers of columns but this is the 
> simplest page with a single name, followed by a letter/number 
> combo.  Some early documents are just a number.
> 
> What I need is to parse out the names and their document, 
> from a pre-generated list, and fed into an array. So a list 
> of Tom, Dick and Harry would mean Tom was [0] in the array, 
> Dick is [1], etc.
> 

We can help you write the query, but we can't help you with the
specification, unless we have a much better indication of the range of
inputs you have to deal with, and the output you want to produce.

As a general rule, incidentally, the "fuzzier" your input, the more benefit
you get from a pattern-matching approach such as XSLT's template rules.

Michael Kay
http://www.saxonica.com/



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-2007 All Rights Reserved.