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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to