[Openstack-docs] my maven-fu is rusty, help finding validation error.

Tom Fifield tom at openstack.org
Tue Jun 24 15:37:01 UTC 2014


On the review, click these:
     gate-openstack-manuals-tox-checkniceness FAILURE in 2m 11s (non-voting)
     gate-openstack-manuals-tox-checksyntax FAILURE in 2m 10s

and then click console.html and scroll.

On 24/06/14 23:30, Jonathan Proulx wrote:
> That's worth a lot :)
>
> where did it come from?
>
> Thanks,
> -Jon
>
>
> On Tue, Jun 24, 2014 at 11:22 AM, Tom Fifield <tom at openstack.org> wrote:
>> FWIW, here's what the syntax check says:
>>
>>
>> 2014-06-24 15:12:33.185 |
>> 2014-06-24 15:12:33.185 | Checking syntax of XML files...
>> 2014-06-24 15:12:33.185 |
>> image-guide/section_freebsd-example.xml:6:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMNAME:
>> Expecting element para, got section
>> 2014-06-24 15:12:33.185 |
>> image-guide/section_freebsd-example.xml:38:0:ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT:
>> Element section has extra content: simplesect
>> 2014-06-24 15:12:33.186 |
>> image-guide/section_freebsd-example.xml:8:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG:
>> Did not expect element para there
>> 2014-06-24 15:12:33.186 |
>> image-guide/section_freebsd-example.xml:8:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMNAME:
>> Expecting element section, got para
>> 2014-06-24 15:12:33.186 |
>> image-guide/section_freebsd-example.xml:195:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMNAME:
>> Expecting element simplesect, got procedure
>> 2014-06-24 15:12:33.186 | Check failed, validated 1 XML files with 1
>> failures.
>>
>>
>>
>>
>> On 24/06/14 23:16, Jonathan Proulx wrote:
>>>
>>> Hi All,
>>>
>>> Thanks for the review offers, see https://review.openstack.org/#/c/102265/
>>>
>>> I use emacs for editing and it usually shows me the erros of my ways,
>>> in this case when looking at the bk-imageguide.xml-invalid.xml it's
>>> just saying the initial 'book' tag is an unknown element (an no other
>>> errors) which is not helpful and suggest a bit of misconfig in my
>>> editor which I'll look into later.
>>>
>>> Thanks,
>>> -Jon
>>>
>>> On Tue, Jun 24, 2014 at 10:57 AM, Diane Fleming
>>> <diane.fleming at rackspace.com> wrote:
>>>>
>>>> If you open that referenced file in oxygen, and run validate, it will
>>>> indicate where the error is. Is there a review #? I can figure it out.
>>>>
>>>> Sent from my iPhone
>>>>
>>>>> On Jun 24, 2014, at 9:37 AM, "Jonathan Proulx" <jon at jonproulx.com>
>>>>> wrote:
>>>>>
>>>>> Hi All,
>>>>>
>>>>> Maven isn't being as helpful as I'd like.  Telling me my edits are
>>>>> invalid (which is likely true it's a new page worth of content so
>>>>> probably screwed up the markup), but I can't see as it's telling me
>>>>> where that error might be, note the lack of line number after
>>>>> "lineNumber:" below, debug version pasted at
>>>>> http://paste.openstack.org/show/84791/ but it doesn't have a line
>>>>> number specific tag complaints either.
>>>>>
>>>>> @@@@@@@@@@@@@@@@@@@@@@
>>>>> !!!VALIDATION ERRORS!!
>>>>> !!!!!!!!!!!!!!!!!!!!!!
>>>>>
>>>>> Note: Open the temporary file:
>>>>>
>>>>>
>>>>> file:/afs/csail.mit.edu/u/j/jon/git/openstack-manuals/doc/image-guide/target//bk-imageguide.xml-invalid.xml
>>>>>
>>>>> to see all the errors in context.
>>>>> You must correct the errors in the original
>>>>> source DocBook or wadl files however.
>>>>>
>>>>> You can control whether build fails or not by
>>>>> setting failOnValidationError to no in your pom.
>>>>>
>>>>> lineNumber:
>>>>>
>>>>> !!!!!!!!!!!!!!!!!!!!!!
>>>>> !!!VALIDATION ERRORS!!
>>>>> @@@@@@@@@@@@@@@@@@@@@@
>>>>>
>>>>> _______________________________________________
>>>>> Openstack-docs mailing list
>>>>> Openstack-docs at lists.openstack.org
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>>>
>>>
>>> _______________________________________________
>>> Openstack-docs mailing list
>>> Openstack-docs at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>>>
>>
>>
>> _______________________________________________
>> Openstack-docs mailing list
>> Openstack-docs at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs




More information about the Openstack-docs mailing list