Xpath expressions in Include in Markup Files

Is there any restriction whatsoever on the kind of X-Path expressions that can be used in <include> element.

e.g.

can a stylesheet be included on a condition whose truth value is determined by an xpath expression refering the DOM nodes.



Answer this question

Xpath expressions in Include in Markup Files

  • dto

    i think i got it..........

    another question

    the spec says ...7.5.3.1.7 .. the infset for each include is the infoset of document prior to include processing.Does it mean the partial DOm tree (if any) built upto the include node can be reffered

    It seems so.




  • Liquid Tobi

    Thanks for the answer...peter...

    Could not find this restriction in the latest spec..please verify when you have time....

    thanks




  • Joe D8

    Includes are processed before the DOM is constructed, so you can't refer to anything in the DOM.

    Basically only XPath variables (either system variables or script variables) can be used.

    I don't have the spec with me (in Portland) but it should be in Chapter 7.



  • Xpath expressions in Include in Markup Files