• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Arguments" dictionary in NSXML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Arguments" dictionary in NSXML


  • Subject: Re: "Arguments" dictionary in NSXML
  • From: Scott Ahten <email@hidden>
  • Date: Sat, 28 May 2005 14:48:52 -0400

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];


On a similar note, is it possible to pass a XSL template as anything other than a string? (another NSXMLDocument?) Having some kind of intermediate XSL document representation would allow the same transform to be applied across multiple documents without the overhead of re-parsing the original template string.

- Scott

On May 28, 2005, at 10:49 AM, Timothy J. Wood wrote:


This probably sets XSL parameters (<xsl:param name="xxx"/>). At least, I logged a bug requesting that they add this since XSL is much less useful to us w/o it.


-tim


On May 27, 2005, at 11:11 AM, Scott Thompson wrote:




In the NSXMLDocument class there is a method:

- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments: (NSDictionary *)argument error:(NSError **)error;

The "arguments:" dictionary in this method is not mentioned in the current documentation (so far as I can tell). Can anyone suggest what arguments, if any, might be passed in here? Can I just pass nil?

Scott

In the NSXMLDocument class there is a method:

- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments: (NSDictionary *)argument error:(NSError **)error;

The "arguments:" dictionary in this method is not mentioned in the current documentation (so far as I can tell). Can anyone suggest what arguments, if any, might be passed in here? Can I just pass nil?

Scott




_______________________________________________ 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




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40pixelfreak.net


This email sent to email@hidden




- - - :: email@hidden :: http://www.pixelfreak.net - - -

_______________________________________________
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


  • Follow-Ups:
    • Re: "Arguments" dictionary in NSXML
      • From: "Timothy J. Wood" <email@hidden>
References: 
 >"Arguments" dictionary in NSXML (From: Scott Thompson <email@hidden>)
 >Re: "Arguments" dictionary in NSXML (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: Monitoring system time
  • Next by Date: Re: primitiveValueForKey Memory Management
  • Previous by thread: Re: "Arguments" dictionary in NSXML
  • Next by thread: Re: "Arguments" dictionary in NSXML
  • Index(es):
    • Date
    • Thread