FROM : Andrew Farmer
DATE : Sat Mar 22 12:50:50 2008
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.
DATE : Sat Mar 22 12:50:50 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Ian Jackson | Mar 22, 09:46 | |
| Andrew Farmer | Mar 22, 12:50 |






Cocoa mail archive

