[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: library for parsing RTF
This seems about as useful as a regex C compiler, that compiles C is procedural language, RTF is markup language. I am pointing that BNF is too heavy for markup languages, such as RTF, MIF, CSS, JSON -- parsing of that can be relatively easy performed w/ XSLT and regexps. At least I find it more difficult to deal w/ YACC compared to XSLT and regexps. For example, I have created simple JSON to XML parser in XSLT using regular expressions: http://www.gerixsoft.com/sites/gerixsoft.com/files/json2xml.zip IMHO it is more simple compared to parser on top of BNF
This is semantics, not syntax. General RTF syntax of curly braces and control tags prefixed w/ "\" is always the same for all vendors. The fact that Apple uses its own RTF control tags and Microsoft is using its own RTF control tags, does not change the RTF {} and \ syntax. RTF is very similar to HTML and CSS -- syntax is always the same for all vendors, elements and semantics behind elements may be different. But it is not a question of parser, and I doubt BNF parser will handle the semantics.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|