jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Doxia
  • DOXIA-132

test order of parsing events

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Core
  • Labels:
    None

Description

For some elements (especially tables and figures), it is essential that a parser emits events in a specified order. We could adapt the WellformednessCheckingSink to test that.

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. DOXIA-177 Invalid XHTML because of wrong position of table caption

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 20/Feb/08 2:43 AM

Actually I think it is not possible to do this generally, at least I don't see how to enforce a particular event order for arbitrary parsers. We could define some standard parsing sequence for certain elements, but these would have to be checked on a per-parser level anyway. So in practice I guess it's just easier to assure that sinks are flexible enough to deal with any (reasonable) order of parsing events, so that the output is valid for the given format. (Btw I have added a SinkEventTestingSink that can be used to test event sequences of particular parsers).

Show
Lukas Theussl added a comment - 20/Feb/08 2:43 AM Actually I think it is not possible to do this generally, at least I don't see how to enforce a particular event order for arbitrary parsers. We could define some standard parsing sequence for certain elements, but these would have to be checked on a per-parser level anyway. So in practice I guess it's just easier to assure that sinks are flexible enough to deal with any (reasonable) order of parsing events, so that the output is valid for the given format. (Btw I have added a SinkEventTestingSink that can be used to test event sequences of particular parsers).

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Lukas Theussl
Vote (0)
Watch (0)

Dates

  • Created:
    12/Jul/07 7:14 AM
    Updated:
    15/Apr/08 7:52 AM
    Resolved:
    20/Feb/08 2:43 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.