On Dec 16, 2008, at 12:56 PM, Keith Blount wrote:

I'm building an .epub eBook exporter from my app and thus need to generate XHTML 1.1 files from my text. I am using NSAttributedString's -dataFromRange:documentAttribributes:error: to generate the XHTML, and by playing with the different combinations of documentAttributes that are used in the TextEdit example, I can generate an XHTML 1.0 strict file, but haven't been able to figure out how to generate an XHTML 1.1 file (perhaps it isn't possible via NSAttributedString as yet?).

NSAttributedString's HTML generation has not been configured or tested for the generation of XHMTL 1.1. It does not currently make use of the lang attribute or map element, or the name attribute on a elements, and it is unlikely to do so in the future, but I'm not prepared to make further guarantees.

Douglas Davidson
_______________________________________________

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 arch...@mail-archive.com

Reply via email to