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-263

Improve validation of input documents

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-11
  • Fix Version/s: 1.1
  • Component/s: Module - Fml, Module - Xdoc, Module - Xhtml
  • Labels:
    None

Description

For example, the snippet

<tr> foo <td/> bar </tr>

successfully parses with the XDocParser, despite the <tr> element having element-only content, i.e. "foo" and "bar" are invalid tokens.

An unfinished idea is to combine a validating XML parser with the XSDs that have recently been created to actually check the input documents against the XSDs.

Issue Links

depends upon

Task - A task that needs to be done. DOXIA-123 Create an xdoc DTD or XSD for maven 2

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

Task - A task that needs to be done. DOXIA-136 Create an FML DTD or XSD

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

New Feature - A new feature of the product, which has yet to be developed. MSITE-47 validate input format of docs

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

Improvement - An improvement or enhancement to an existing feature or task. DOXIA-226 Make XML based parsers better handle whitespace

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
relates to

Bug - A problem which impairs or prevents the functions of the product. MSITE-440 Site generation fails if unable to retrieve schema (in offline mode)

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 02/Nov/08 12:41 PM

Also, having a validating XML parser with the proper XSD would allow to detect ignorable whitespace, making the programmatic flag suggested in DOXIA-226 superfluos.

Show
Benjamin Bentmann added a comment - 02/Nov/08 12:41 PM Also, having a validating XML parser with the proper XSD would allow to detect ignorable whitespace, making the programmatic flag suggested in DOXIA-226 superfluos.
Hide
Permalink
Vincent Siveton added a comment - 04/Nov/08 5:18 PM

IMHO we could implement this feature with XppParserOnStaxReader from [1] (ASL license). We need to specify the correct XSD/DTD.

[1] http://woodstox.codehaus.org/staxmisc/

Show
Vincent Siveton added a comment - 04/Nov/08 5:18 PM IMHO we could implement this feature with XppParserOnStaxReader from [1] (ASL license). We need to specify the correct XSD/DTD. [1] http://woodstox.codehaus.org/staxmisc/
Hide
Permalink
Vincent Siveton added a comment - 07/Nov/08 9:15 AM

fixed in r712147
I implemented the validation with xerces and the performances are not so bad

Show
Vincent Siveton added a comment - 07/Nov/08 9:15 AM fixed in r712147 I implemented the validation with xerces and the performances are not so bad

People

  • Assignee:
    Vincent Siveton
    Reporter:
    Benjamin Bentmann
Vote (0)
Watch (0)

Dates

  • Created:
    02/Nov/08 12:37 PM
    Updated:
    22/Dec/09 7:57 PM
    Resolved:
    07/Nov/08 9:15 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.