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

RE: Detecting character combination in XML

Subject: RE: Detecting character combination in XML
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 24 Jul 2005 22:00:34 +0100
RE:  Detecting character combination in XML
//book[contains(desc, ' q')]/title

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

> -----Original Message-----
> From: Karl Koch [mailto:TheRanger@xxxxxxx] 
> Sent: 24 July 2005 21:25
> To: Mulberry list
> Subject:  Detecting character combination in XML
> 
> Hello experts,
> 
> I have the following XML structure:
> 
> <bookshelf>
>   <book>
>     <title>A</book>
>     <desc>This qis an interesting qbook about...</desc>
>   </book>
>   <book>
>     <title>B</book>
>     <desc>This is another good book</desc>
>   </book>
> </bookshelf>
> 
> When you look at the description (desc) you can see that the 
> first text
> contains sometimes a "q" (non capital letters) before a word. 
> I would like a
> script that detects all books and return their titles, when 
> the description
> contrains a space and a q next to each other somewhere in the 
> text. This
> should be only if the q is a non-capital letter. I am using 
> Xalan and don't
> really want to change the parser for this task... 
> 
> This text output here would look that:
> 
> A
> 
> 
> I am aware that this might be sometimes incorrect but I just 
> want to use
> this output to crosscheck and support my manual work. 
> 
> Also, I have some variations for this:
> 
> variation a) I would like to detect the following ". q".
> variation b) I would like to detect teh following "? q".
> 
> Any help is highly appreciated,
> 
> Karl
> 
> -- 
> GMX DSL = Maximale Leistung zum minimalen Preis!
> 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
> http://www.gmx.net/de/go/dsl

Current Thread

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