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

Diane Fleming diane.fleming at RACKSPACE.COM
Tue Jun 24 15:29:33 UTC 2014


I patched with a fix.

You had these problems:

- procedure that wasn't in a <simplesect>
- <file> tag should be <filename>
- referenced image used wrong file name


Diane
----------------------------------------------
Diane Fleming
Software Developer II - US

diane.fleming at rackspace.com
Cell  512.323.6799
Office 512.874.1260
Skype drfleming0227
Google-plus diane.fleming at gmail.com






On 6/24/14 10: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_ELE
>MNAME: 
>Expecting element para, got section
>2014-06-24 15:12:33.185 |
>image-guide/section_freebsd-example.xml:38:0:ERROR:RELAXNGV:RELAXNG_ERR_EX
>TRACONTENT: 
>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_ELE
>MWRONG: 
>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_ELE
>MNAME: 
>Expecting element section, got para
>2014-06-24 15:12:33.186 |
>image-guide/section_freebsd-example.xml:195:0:ERROR:RELAXNGV:RELAXNG_ERR_E
>LEMNAME: 
>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/t
>>>>arget//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