[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: using variables correctly
You could change the for-each to:From: "Krueger, Philipp" <Philipp.Krueger@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx, xsl-list-digest@xxxxxxxxxxxxxxxxxxxxxx Subject: using variables correctly Date: Mon, 2 Jun 2003 15:41:13 +0200 <xsl:for-each select="database/computer[@*[name() = $search] = $searchparam]"> but then $search would have to contain 'owner' rather than '@owner'. If you are using namespaces on the attributes you can change name() to local-name(). Joe _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|