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

Problem matching part of a string

Subject: Problem matching part of a string
From: "Kent Seegmiller" <hookjaw20@xxxxxxxxxxx>
Date: Thu, 2 Jun 2005 00:24:03 -0600
morrison meat pies
OK here is my problem:
I have 2 source docs.  Doc 'A' has this:
<vendors>
 <vendor>DAN MORRISON MEAT PIES</vendor>
 <vendor>BOISE CASCADE</vendor>
 <vendor>CANDY TECH INC</vendor>
 <vendor>WF</vendor>
</vendors>

And Doc 'B' has this:

...
<vendor name="..."/>
<vendor name="..."/>
<vendor name="..."/>
<vendor name="..."/>
...

And I want to create a third xml doc using xslt2.0 that cross references the first part of @name of doc 'B' with the vendor element in doc 'A' and if so, make the claimable att. 'true'. There are some 1300 vendor names in doc 'B' and there are some 100 vendors that begin with 'WF'. So I get this in the third xml.

...
<vendor name="..." claimable="true/false"/>
<vendor name="..." claimable="true/false"/>
<vendor name="..." claimable="true/false"/>
<vendor name="..." claimable="true/false"/>
...

but I am having problems with the substring function.

-Thanks, KS

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.