Re: NSXMLDocument: apply XSLT with arguments
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