• 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: XML to RTF transformation via XSL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >XML to RTF transformation via XSL (From: Ian Jackson <email@hidden>)

  • Prev by Date: Re: Changing properties inside a relationship entity
  • Next by Date: [iPhone] NSTableView and NSIndexPath
  • Previous by thread: XML to RTF transformation via XSL
  • Next by thread: NSTreeController, "canRemove" binding
  • Index(es):
    • Date
    • Thread