syntax error or not supported yet?

Hi gurus,

Now I meet with a problem when I'm using MS HD DVD Simulator to test a disc.

An XPath expression, /descendant::body/child::div, which I think all right, doesn't pass the MS Simulator though.

And similar expression is found in XPath 1.0, W3C

/descendant::olist/child::item selects all the item elements that have an olist parent and that are in the same document as the context node

So, everybody please give your suggestions. Is it a syntax error or just not currently supported by MS HD Player yet

Thanks!



Answer this question

syntax error or not supported yet?

  • linzbfc

    Unfortunately, HD DVD only supports a subset of XPath in order to make it easier to implement on low-cost hardware. Chapter 7 of the spec (not on me right now...) outlines the grammar that is supported, but basically you can only use //node-name (select from root) or functions like id('name') or class('name') for the location-path part.

  • mogulty

    So, do you think /descendant::body should not be supported in HD Player in current step
  • Potato K

    Section 7.5.2.4 of the spec defines allowed XPath syntax.

    XPath axes are not allowed.

    You'll need to change your syntax based on the rules defined in 7.5.2.4, otherwise syntax error will be thrown.


  • syntax error or not supported yet?