• 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: NSXMLDocument: apply XSLT with arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLDocument: apply XSLT with arguments


  • Subject: Re: NSXMLDocument: apply XSLT with arguments
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 13 Jul 2005 20:20:14 -0400

On Jul 13, 2005, at 7:46 PM, Romain Brestac wrote:

In NSXMLDocument, there is a method named:

objectByApplyingXSLT:arguments:error:
- (id)objectByApplyingXSLT:(NSData *)xslt arguments:(NSDictionary *) arguments error:(NSError **)error


But what are arguments ? global variables for the stylesheet ? and how do you call them from inside the stylesheet ?

It's not really a Cocoa topic, so I won't go into much detail. They're global parameters, like those defined with <xsl:param> elements. You can use them in your templates with <xsl:with-param> elements. Have a look at any good XSLT tutorial or reference for details.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


References: 
 >NSXMLDocument: apply XSLT with arguments (From: Romain Brestac <email@hidden>)

  • Prev by Date: NSXMLDocument: apply XSLT with arguments
  • Next by Date: Re: NSNotificationCenter possible memory leak? [for memory geek]
  • Previous by thread: NSXMLDocument: apply XSLT with arguments
  • Next by thread: 'Touching' managed objects properties.
  • Index(es):
    • Date
    • Thread