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

mixed content searching

Subject: mixed content searching
From: "Thinh Nguyen" <thainguy99@xxxxxxxxxxx>
Date: Tue, 07 May 2002 06:33:48 +0000
thinh nguyen studio

Hi all,
I just subscribed a few minutes ago. I'd like to get some help on or probably some sample code that can do the following for me.
The given XML file has mixed contents data such as


<doc>hello <name>Tom</name>. i am <name>Sue</name>. cheers</doc>

Q1) how do I write grep.xsl to meet the following commands
 H:> saxon example.xml grep.xsl target=Tom
 Tom

 H:> saxon example.xml grep.xsl target=am
 .... i am ...

 H:> saxon example.xml grep.xsl target=he
 hello ...
 .... cheers

Q2) How do I write grep2.xsl to meet the following commands
H:> saxon example.xml grep2.xsl target=Tom
<doc>hello <name class="matched">Tom</name>. i am <name>Sue</name>. cheers</doc>


H:> saxon example.xml grep2.xsl target=am
<doc class="matched">hello <name>Tom</name>. i am <name>Sue</name>. cheers</doc>


H:> saxon example.xml grep2.xsl target=he
<doc class="matched">hello <name>Tom</name>. i am <name>Sue</name>. cheers</doc>



Thanks for any help in advance. Regards, Tim



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



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.