On 2012-07-26 15:38, Nagarajan Chinnasamy wrote:
So, we need to find a solution that will:

1. maintain backward compatibility (not breaking the ones without
space after <?)
2. co-exist with other "<?" usages (like <?xml)

let's look at it in a different way for a minute. We don't have to necessarily support the <?xml ...?> tag everywhere. We have to detect the standard header for a canonical XML document which occurs at the very beginning of it. Would it make the problem easier to tackle with the current code of Rivet? Just wondering...

3. not need users to recompile Rivet or write code

I'm against the adoption of a run time switch basically on the ground that Rivet has to declare and support one way to embed scripts. This has also would impact the documentation and the test suite. Anyone wanting to use different start/end tags can do it rebuilding and redefining START_TAG/END_TAG. I never tested the effect of defining START_TAG as "<?rvt", definitely it would be a good test to see if those preprocessor symbols are used consistently in the parser throughout. A sign the code is well written from this point of view. In case a switch for the 'configure' script could make things easier (--with-start-tag=..., --with-end-tag=...).

 -- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to