Re: XML to RTF transformation via XSL
Re: XML to RTF transformation via XSL
- Subject: Re: XML to RTF transformation via XSL
- From: Andrew Farmer <email@hidden>
- Date: Sat, 22 Mar 2008 04:50:50 -0700
On 22 Mar 08, at 01:46, Ian Jackson wrote:
I'd like to have my XML file read by my app, and save the file, or
display it in a NSTextView, as RTF (with the appropriate formatting
etc).
So I have been trying to use:
- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments:
(NSDictionary *)argumentserror:(NSError **)error
Which is happily giving me the HTML document that would be expected.
<...>
And these things either give an error in the console, or at best
just give HTML. Also, I can't see how any of these settings (except
the target properties) would give me RTF (rather than plain text).
Am I barking up the wrong tree here? I was expecting RTF output with
bigger bolder text corresponding to <h2> etc.
Reading the documentation, there doesn't appear to be any magic HTML-
>RTF pixie dust in objectByApplyingXSLTAtURL. To get RTF output,
you'll probably need to write a stylesheet that generates RTF data
instead of HTML.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden