Re: element UIDs in MusicXML 3.1?

Hi Joe and other XML experts,

The validating parser which I use (CodeSynthesis xsd/e) does not allow addition of xml:id attributes into arbitrary MusicXML elements. The designer of this parser says that the attribute need to be explicitly defined in elements (see http://stackoverflow.com/questions/14198166/validating-xml-with-attributes-in-namespace-xml <http://stackoverflow.com/questions/14198166/validating-xml-with-attributes-in-namespace-xml>)

I found an online validating parser (http://www.xmlforasp.net/schemavalidator.aspx) to test the attached MusicXML file against the MusicXML schema, and it did not allow the xml:id attribute. (I also checked it permitted the same file without the xml:id). There are many online validators but most did not work at all!

Any other views on this? Any other validating parsers been tried

with best regards
James Sutton
Dolphin Computing
http://www.dolphin-com.co.uk <http://www.dolphin-com.co.uk/>
http://www.seescore.co.uk <http://www.dolphin-com.co.uk/>

> On 19 Sep 2016, at 17:03, Joe Berkovitz <joe@noteflight.com> wrote:
> 
> Sorry to be coming back to this so late in the thread.
> 
> MusicXML seems to already specify that xml:id can be used as per Thomas Weber's suggestion, independently of the "id" attribute as defined in MusicXML: http://www.musicxml.com/for-developers/musicxml-xsd/xml-namespace/ <http://www.musicxml.com/for-developers/musicxml-xsd/xml-namespace/>
> 
> This would be an area that I would want to clarify in MNX by avoiding use of any MusicXML-specific "id" attributes, so that there is no potential for conflict. I see xml:id as ultimately becoming the only "id" attribute.
> 
> .            .       .    .  . ...Joe
> 
> Joe Berkovitz
> President
> Noteflight LLC
> 
> +1 978 314 6271
> 
> 49R Day Street
> Somerville MA 02144
> USA
> 
> "Bring music to life"
> www.noteflight.com <http://www.noteflight.com/>
> 
> On Wed, Aug 3, 2016 at 9:05 PM, Thomas Weber <tw@notabit.eu <mailto:tw@notabit.eu>> wrote:
> Am 03.08.2016 um 18:18 schrieb Michael Good:
> > Unfortunately we can't quite do the "every element has an id attribute that is an ID type" proposal without breaking compatibility with earlier MusicXML versions. MusicXML 3.0 already has several commonly-used elements where the id attribute is an IDREF rather than an ID.
> >
> >
> 
> Standards to the rescue:  With xml:id attributes, there's no incompatibilities with earlier versions.
> 
>   https://www.w3.org/TR/xml-id/ <https://www.w3.org/TR/xml-id/>
> 
> 
> 

Received on Tuesday, 20 September 2016 07:54:44 UTC