W3C home > Mailing lists > Public > xproc-dev@w3.org > January 2009

Puzzled about options

From: Costello, Roger L. <costello@mitre.org>
Date: Sat, 24 Jan 2009 09:34:59 -0500
To: "'xproc-dev@w3.org'" <xproc-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB5003E2DD0104@IMCMBX3.MITRE.ORG>


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 24 January 2009 14:35:37 GMT