This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29109 - [xslt 3.0] New function available-system-properties()
Summary: [xslt 3.0] New function available-system-properties()
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 19:22 UTC by Michael Kay
Modified: 2015-10-29 12:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2015-09-03 19:22:39 UTC
A need has been identified for a function available-system-properties() to list the property names recognized by the implementation, and the WG agreed in principle to add such a function. Here is the first draft of the specification:

<fos:function name="available-system-properties">
      <fos:signatures>
         <fos:proto name="available-system-properties" return-type="xs:QName*"/>
      </fos:signatures>
      <fos:properties>
         <fos:property>deterministic</fos:property>
         <fos:property>context-independent</fos:property>
         <fos:property>focus-independent</fos:property>
      </fos:properties>
      <fos:summary>
         <p>Returns a list of system property names that are suitable for passing to
            the <function>system-property</function> function, as a (possibly empty) sequence of QNames.</p>
      </fos:summary>
      <fos:rules>
         <p>The function returns a sequence of QNames, being the names of the system properties
            recognized by the processor, in some <termref def="implementation-dependent"
               >implementation-dependent</termref> order.</p>
         <p>The function is <termref def="dt-deterministic">deterministic</termref>: that is, the
            set of available system properties does not vary during the course of a transformation.</p>
      </fos:rules>
      <fos:notes>
         <p>The function returns a list of QNames, containing no duplicates.</p>
         <p>It is intended that the QNames in this list should be suitable for passing to
            <function>system-property</function>.</p>
         
      </fos:notes>
   </fos:function>
Comment 1 Michael Kay 2015-10-08 16:45:51 UTC
Accepted with the addition that this function should be available in static expressions (see the list in section 9.7)
Comment 2 Michael Kay 2015-10-15 15:12:24 UTC
Confirmed that this proposal has been applied to the spec, including the addition in comment #1.
Comment 3 Abel Braaksma 2015-10-15 15:52:00 UTC
Note: I have added 29 tests to XT3 for this new function.