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

Re: how to replace a node with a variable

Subject: Re: how to replace a node with a variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 27 Sep 2004 15:22:44 +0100
replace anode
  I need to change the following xslt so instead of the hard-coded
  'customer' I can use in the pass in variable. Is there an easy way to do
  this?

You don't have a hard coded "customer" in the code that you posted, you
have "customers" and "CUSTOMER" and it isn't clear which of these you
want to change, given the way you phrased yor question.

The FAQ answer to selecting a node   whose name is given by a
parameter *say $foo) is to use

*[name()=$foo]

Note however that your previuous postings have suggested that no
parameter is really necessary in your case as while you don't know the
name of the element in your input document you know that you want to
match all teh children of the document element, and for that you can
just use * as discussed previously.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.