The 'priority' attribute is not declared.

In the samples and my own tests I get the error:

ERROR: Invalid attribute "priority" at row 13, char 36: The 'priority' attribute is not declared.

When running the validator. Is this a bug in the validator?

Here's line13 for example:

<PlaylistApplication description="Test" language="en" src="file:///dvddisc/ADV_OBJ/Manifest.xmf">
13<PlaylistApplicationResource priority="1" multiplexed="false" size="500000" src="file:///dvddisc/ADV_OBJ/Manifest.xmf" />
<PlaylistApplicationResource multiplexed="false" priority="1" size="500000" src="file:///dvddisc/ADV_OBJ/Script.js" />
<PlaylistApplicationResource multiplexed="false" priority="1" size="500000" src="file:///dvddisc/ADV_OBJ/Markup.xmu" />
<PlaylistApplicationResource multiplexed="false" priority="1" size="500000" src="file:///dvddisc/ADV_OBJ/Miramonte_b101.TTF" />
</PlaylistApplication>

[1923 byte] By [wmerydith] at [2008-2-3]
# 1
Please note that unlike in other lines, in line 13 priority attribute is mentioned before multiplexed attribute. Try placing it like in other lines.
rekhareflection at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 2
Yes I actually switched priority to come before the multiplexed attribute in order to eliminate order as a cause of this problem. Order does not seem to be the problem.
wmerydith at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 3
There is no such thing as priority for PlaylistApplicationResources. This is because they are never unloaded from memory, like normal application resources can be. If the memory becomes too full, the HD DVD player automatically starts deleting unused resources (resources not valid for that time period or title). The priority is used to determine which items are deleted first.

The playlist application is always running, so there is no time at which its resources are not valid. Therefore, no need for a priority attribute.

In the future, playlist schema validation would be a very useful tool for your debugging. The schema can be found here:

http://www.dvdforum.org/2005/HDDVDVideo/Playlist/Playlist.xsd

Other schemas are available for the Manifest and Markup.

BadAnalog at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 4
Nice. Thanks BA!
wmerydith at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 5
Is there really a schema available for Markup? It is not at http://www.dvdforum.org/2005/HDDVDVideo/Markup/ - if not here, where would it be?

Thanks

jakeonfire at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 6
I figured it out. The root element should look like the following for automatic markup validation:

*.xmu root element

<root xml:lang="en"
xmlns="http://www.dvdforum.org/2005/ihd"
xmlns:style="http://www.dvdforum.org/2005/ihd#style"
xmlns:state="http://www.dvdforum.org/2005/ihd#state"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.dvdforum.org/2005/ihd
http://www.dvdforum.org/2005/ihd/iHD.xsd
http://www.dvdforum.org/2005/ihd/iHDstate.xsd
http://www.dvdforum.org/2005/ihd/iHDstyle.xsd"
>


jakeonfire at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...