W3C

XPath Profile Levels

W3C Member-Only Document 09 April 2010

Editor:
Frederick Hirsch

Abstract

This is an informal document to compare WS-Fragment XPath profiles with the XPath profile in XML Signature 2.0 and to propose a unified XPath profile document.

Status of This Document

This document is merely a W3C-internal member-confidential document. It has no official standing of any kind and does not represent consensus of the W3C Membership.

Table of Contents

1. Introduction

2. Comparison of WS-Fragment Level 1 XPath Profile and XML Signature 2.0 profile

This section compares the Level 1 XPath profile in WS-Fragment section 6 ("XPath Level 1 Expression Language") [WS-FRAGMENT] with the XPath profile in section 4.4.3.11 ("XPaths in 2.0 mode") in XML Signature 2.0 [XMLDSIG-CORE2]. WS-Fragment also has another profile of XPath in section 7 ("XPath 1.0 Expression Language"), but this appears to be full XPath so is not compared.

Feature WS-Fragment Level 1 XPath Profile XML Signature 2.0 XPath Profile
Syntax Relative only Absolute only
Function Libraries None Reduced Function Libraries (String, Boolean and Number functions supported. Node set functions limited to id, local-name, namespace-uri and name functions
Node Tests NameTest and the text NodeType NameTest (known as StepAttributeOnly)
Axis, but All the non streamable axes have been removed - ancestor, ancestor-or-self, following, following-sibling, namespace, parent, preceding, preceding-sibling removed. Leaves attribute, child, descendant, descendant-or-self, self
Computed Values Not supported. Supported fully
Conformance Conformance is minimum - implementation may support more of XPath Restricted to what is specified in profile

3. Proposal

Create a separate XPath profile with WS-Fragment Level 1 profile (unchanged), XML Signature 2.0 XPath profile, renamed as Level 2 and material in section 7 ("XPath 1.0 Expression Language") of WS-Fragment.

A. References

Dated references below are to the latest known or appropriate edition of the referenced work. The referenced works may be subject to revision, and conformant implementations may follow, and are encouraged to investigate the appropriateness of following, some or all more recent editions or replacements of the works cited. It is in each case implementation-defined which editions are supported.

A.1 Normative references

[WS-FRAGMENT]
D. Davis; A. Malhotra; K. Warr; W. Chou. Web Services Fragment (WS-Fragment). 30 March 2010. W3C Working Draft. (Work in progress.) URL: http://www.w3.org/TR/2010/WD-ws-fragment-20100330
[XMLDSIG-CORE2]
Mark Bartel; John Boyer; Pratik Datta et al. XML Signature Syntax and Processing Version 2.0, 4 March 2010. W3C Working Draft. URL: http://www.w3.org/TR/xmldsig-core2/

A.2 Informative references

No informative references.