Menu

#3607 DOC: broken links in XML regtests

Accepted
nobody
None
Scripts
2016-04-09
2013-10-11
Anonymous
No

Originally created by: *anonymous

Originally created by: ColinPKC...@gmail.com

Reported by Patrick Schmidt:
"In case this is not a known issue: all examples on http://www.lilypond.org/doc/v2.17/input/regression/musicxml/collated-files#top lead to a 404 Not Found Error.  It says e.g.

The requested URL /doc/v2.17/input/regression/musicxml/19/lily-4197d4c2.xml was not found on this server.

The link should actually point to the LilyPond input that was used to generate that image – and not to an .xml file.  There is something wrong here!"

Discussion

  • Federico Bruni

    Federico Bruni - 2016-03-11

    Only the extension is wrong: replace .xml with .ly and it works:
    http://www.lilypond.org/doc/v2.17/input/regression/musicxml/19/lily-4197d4c2.ly

    So the anchor to the .ly file generated by musicxml2ly is getting the same extension of its xml source. I guess that the problem is in book-musicxml-testsuite.py

     
  • Federico Bruni

    Federico Bruni - 2016-04-09

    This used to work until version 2.14, when the linked file had the .ly extension. The last 2.15 has .xml extension.
    But I cannot find any xml file in the out-www directory. This is an example of a directory where I should find a .xml file:

    ls out-www/offline-root/input/regression/musicxml/ba/
    lily-3043c78c-1.signature  lily-3043c78c-2.signature  lily-3043c78c-3.signature  lily-3043c78c-4.signature  lily-3043c78c-5.signature  lily-3043c78c.ly  lily-3043c78c.png
    

    The following commit was added before 2.15.27 release:

    commit 7eb3deeb7e8c7025322336b83ab54a5b43b15942
    Author: Julien Rioux <...>
    Date:   Tue Jan 17 21:21:50 2012 -0500
    
        lilypond-book: Specify filename and ext for all snippets.
    
        Filename is used to link to the source file, ext is used to link
        to the generated file base.ext (usually a lily-????.ly, although
        for musicxml input files we copy the original to lily-????.xml).
        For inline snippets use an empty filename and '.ly' as ext.
    
    diff --git a/python/book_snippets.py b/python/book_snippets.py
    index e5a4311..7e5e946 100644
    --- a/python/book_snippets.py
    +++ b/python/book_snippets.py
    

    And this is before 2.15.9:

    commit cfcb9efdbd7c6600fc89fc912ba80529010b31e7
    Author: Reinhold Kainhofer <reinhold@kainhofer.com>
    Date:   Thu Jun 24 12:00:03 2010 +0200
    
        MusicXML test suite: use custom py formatter for MusicXML files
    
        Use the .xml (and .mxl) files in collated-files rather than the
        converted .ly ones.
    
        In the future, I want to change the layout of each test case to also
        include renderings from other applications and maybe some other information.