Puzzled about options

Hi Folks,

Consider the following examples which show the use of the "select" and "href" options.


OPTIONS USED AS ATTRIBUTES

This works:

    <p:filter select="/BookStore/Book[Date=1998]"  />

But this doesn't work:

    <p:store href="/Book/Filename" />


OPTIONS USED AS A CHILD ELEMENT

This works:

    <p:store>
        <p:with-option name="href" select="/Book/Filename"/>
    </p:store>

But this doesn't work:

    <p:filter>
        <p:with-option name="select" select="/BookStore/Book[Date=1998]"  />
    </p:filter>


Sometimes when an option is used as an attribute it takes an XPath expression, sometimes it doesn't. Sometimes when an option is used in with-option it takes an XPath expression, sometimes it doesn't.

I'm puzzled. 

Would someone explain the rules for using options please?

/Roger

Received on Saturday, 24 January 2009 14:35:36 UTC