Hi All
I have following XMU:
<par>
<cue begin="//button[state:pointer() and $Pointer != @id]" dur="1f">
<event name="GotFocus" />
</cue>
<cue begin="//button[state:pointer() = false() and @id = $Pointer]" dur="1f">
<event name="LostFocus" />
</cue>
</par>
And following JS:
function SetXPaths()
{
document.setXPathVariable("Focus", elementWithFocus.toString());
document.setXPathVariable("Pointer", elementWithPointer.toString());
}
This is a part of "http://blogs.msdn.com/ptorr/archive/2006/07/06/658680.aspx" sample
I use HDDVDValidator 6.0.5285.0 for verify code. But after that a see following warning:
- <cue>
| Using xml:base: file:///dvddisc/ADV_OBJ/
| Attribute: begin="//button[state:pointer() and $Pointer != @id]"
| Attribute: dur="1f"
| WARNING (W052000001): Variable Pointer is not defined (Element: cue, Attribute: begin, Line: 17, Col: 39) (Spec 7.5.2.4)
...
- <cue>
| Using xml:base: file:///dvddisc/ADV_OBJ/
| Attribute: begin="//button[state:pointer() = false() and @id = $Pointer]"
| Attribute: dur="1f"
| WARNING (W052000001): Variable Pointer is not defined (Element: cue, Attribute: begin, Line: 20, Col: 54) (Spec 7.5.2.4)
Can I define variables in XMU file In Spec 7.5.2.4 I don't saw how I can do it.

Question about W052000001 warning
loic123456
There is no way to define them. This is just a "warning" (not an error) so that you make sure you are indeed setting the variable in your setMarkupLoadedHandler. The validator isn't smart enough to also read your script file to see if you set the XPath variable (and in general this is an impossible problem to solve).
You can safely ignore the warning -- if you ever do have a reference to an XPath variable that doesn't exist, you'll know pretty quickly because your application will die on the first frame :-).