Custom Tags: TextImporter not very friendly
It seems to me that a very powerful aspect of TLF is the ability to loop through an XML tree and apply custom styling based on your own logic (via IFormatResolver). What I find disappointing is TextConverter's inflexibility and lack of direct TextField-style HTML/StyleSheet support. The docs say that TLF supports the same HTML tags as TextField via TextConverter.HTML_FORMAT. This may be true but it does not support them in the same manner. For example, TextField allows me to create a tag called <whatever> and have a corresponding style in a stylesheet. TextField also allows me to have an <a> be a child of a <span>. TLF is very anal about what tags can be where and what attributes they can have. In order for me to fully leverage IFormatResolver, I should be able to apply styles based on my own tag names and tag attributes.
When calling ITextImporter.importToFlow, where is the validation occuring? Is there an XSD? Can I override this validation? The strictness causes much pain when dealing with user-input as the source.
I wish TLF was more lenient when importing and would let me decide what to do with "bad" tags and attributes.
