Re: "Arguments" dictionary in NSXML
Re: "Arguments" dictionary in NSXML
- Subject: Re: "Arguments" dictionary in NSXML
- From: "Timothy J. Wood" <email@hidden>
- Date: Sun, 29 May 2005 16:44:51 -0700
On May 28, 2005, at 11:48 AM, Scott Ahten wrote:
Note: When creating a parameter dictionary, you'll need to put
constant parameter string values in single quotes, otherwise they
are evaluated as "".
NSMutableDictionary *args = [NSMutableDictionary dictionary];
[args setObject:@"'Scott'" forKey:@"nameFirst"];
[args setObject:@"'Ahten'" forKey:@"nameLast"];
NSXMLDocument *results =[source
objectByApplyingXSLTString:templateString
arguments: args
error: nil];
In general, I think they are supposed to be a XSL expression. So,
leaving off the quotes is probably resulting in a element search
(i.e., the element Scott instead of the string 'Scott').
-tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden