[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Applying XSL transformation to non-xml (but fixed
On 02/06/2010 11:32, Christian Schouten wrote:
Hi all, It's very hard to judge from one sample file what is the range of possible inputs that your program needs to deal with; in particular, whether you can get by with a simple line-by-line analysis using regular expressions, or whether you need to do full recursive parsing based on a BNF grammar. Superficially, it looks like the second case, but I might be misjudging. The answer to this question fundamentally affects the design approach you adopt. In the second case, I would recommend writing a parser for the input format (perhaps using a tool such as JavaCC) that converts it into XML, and then write the XSLT transformation to process the resulting XML. Michael Kay Saxonica
|
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
|