From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Fri, 22 Feb 2008 14:49:17 +0000 (+0100)
Subject: MusicXML: The <attributes> tag can have multiple <staff-details> children
X-Git-Tag: release/2.11.41-1~8^2~3^2~3
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4e77471a95103dab4aea4e94b896171c30c35290;p=lilypond.git

MusicXML: The <attributes> tag can have multiple <staff-details> children
---

diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py
index 4513e363e6..2738e4fc03 100644
--- a/scripts/musicxml2ly.py
+++ b/scripts/musicxml2ly.py
@@ -267,9 +267,9 @@ def staff_attributes_to_lily_staff (mxl_attr):
             clef_sign = {"percussion": "percussion", "TAB": "tab"}.get (sign.get_text (), None)
 
     lines = 5
-    details = attributes.get_maybe_exist_named_child ('staff-details')
-    if details:
-        staff_lines = details.get_maybe_exist_named_child ('staff-lines')
+    details = attributes.get_named_children ('staff-details')
+    for d in details:
+        staff_lines = d.get_maybe_exist_named_child ('staff-lines')
         if staff_lines:
             lines = string.atoi (staff_lines.get_text ())