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

RE: selecting elements with param

Subject: RE: selecting elements with param
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 22 Feb 2010 17:07:15 -0000
RE:  selecting elements with param
Try matches(., 'TMD_DRV1_IMG_Scan[0-9]+_techMD')
 
> 'concat(TMD_DRV1_IMG_Scan, [0-9], _techMD)']"

This is way off the mark. Calling concat() within a string literal does
nothing; and if it did anything, it's arguments would have to be strings;
but there is no point concatenating constant strings since you can write
them directly.

Regards,

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


> -----Original Message-----
> From: ivanmacculi@xxxxxxxxx [mailto:ivanmacculi@xxxxxxxxx] 
> Sent: 22 February 2010 16:58
> To: XSL user
> Subject:  selecting elements with param
> 
> Hi all, i've problem of selecting elements that corresponds 
> to some characteristics:
> 
> xml elements that i want to select are like this:
> 
> <mets:techMD ID="TMD_DRV1_IMG_Scan00020_techMD">
> 
> so, i need to select all mets:techMD that have 
> ID="TMD_DRV1_IMG_Scan#####_techMD".
> my problem is to cover all the numbers.
> 
> I will use your solution to put a condition in my xsl. 
> I thought something like this:
> 
> <xsl:template 
> match="mix:ImageCreation[ancestor::mets:techMD/@ID[matches(., 
> 'concat(TMD_DRV1_IMG_Scan, [0-9], _techMD)']">.
> 
> but it doesn't do. could you help me, please?

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.