Selection Axis 1.0

Public Working Draft 21 December 2011

Copyright ©2011 XBRL International Inc., All Rights Reserved.

This version:
<http://www.xbrl.org/Specification/selection-axis/PWD-2011-12-21/selection-axis-PWD-2011-12-21.html>
Editors:
Herm Fischer, Mark V Systems <fischer@markv.com>
Victor Morilla, Banco de España <victor.morilla@bde.es>
Contributors:
Geoff Shuetrim, Galexy Pty. <geoff@galexy.com>
Masatomo Goto, Fujitsu Ltd. <mg@jp.fujitsu.com>
Roland Hommes, RHOCON <roland@rhocon.nl>
Bartosz Ochocki, BRAG <bartosz.ochocki@br-ag.eu>
Hugh Wallis, Standard Dimensions <hugh@standarddimensions.com>

Status

Circulation of this Public Working Draft is unrestricted. This document is normative. Other documents may supersede this document. Recipients are invited to submit comments to rendering-feedback@xbrl.org, and to submit notification of any relevant patent rights of which they are aware and provide supporting documentation.

Abstract

This document specifies semantics and syntax constraints for selection axes. Selection axes provide an implementation of open axes, as defined in the table specification, based on the use of XPath expressions that select a sequence of data (not necessarily fact items), which is given a name, and usable as a variable in breakdown (nested) axes of the same axis disposition, and usable in axes expressions of the opposite axis disposition (when orthogonal to the selection axis coordinate).

Comment

1 Hugh Wallis:This is an early list - to be updated

Table of Contents

1 Introduction
2 Namespaces and namespace prefixes
3 Definitions
4 Coordinate ordering
5 Context Item
6 Selection
7 Headers
8 Syntax

Appendices

A Normative schema
B References
C Intellectual property status (non-normative)
D Acknowledgements (non-normative)
E Document history (non-normative)
F Errata corrections in this document

Table

1 Namespaces and namespace prefixes

Figure

1 Selection Axis Model

Definition

selection axis


1 Introduction

This document specifies semantics and syntax constraints for selection axes. Selection axes provide an implementation of open axes, as defined in the table specification, based on the use of XPath expressions that select a sequence of data (not necessarily fact items), which is given a name, and usable as a variable in breakdown (nested) axes of the same axis disposition, and usable in axes expressions of the opposite axis disposition (when orthogonal to the selection axis coordinate).

(In a most general sense, if the predefinedRuleAxes and filterAxes were thought of in the same manner as fact variables for formula variable sets, the selection axes may be thought of as general variables for the table, as a simile of a variable set.)

2 Namespaces and namespace prefixes

Namespace prefixes [XML NAMES] will be used for elements and attributes in the form ns:name where ns is the namespace prefix and name is the local name. Throughout this specification, the mappings from namespace prefixes to actual namespaces are consistent with Table 1.

The prefix column in Table 1 is non normative. The namespace URI column is normative.

Table 1: Namespaces and namespace prefixes
Prefix Namespace URI
table http://xbrl.org/2011/table
xbrlte http://xbrl.org/2011/table/error
link http://www.xbrl.org/2003/linkbase
xbrli http://www.xbrl.org/2003/instance
xfi http://www.xbrl.org/2005/function/instance
xbrldi http://xbrl.org/2006/xbrldi
xbrldt http://xbrl.org/2005/xbrldt
xl http://www.xbrl.org/2003/XLink
xlink http://www.w3.org/1999/xlink
xs http://www.w3.org/2001/XMLSchema
xsi http://www.w3.org/2001/XMLSchema-instance
generic http://xbrl.org/2007/generic

3 Definitions

The figure below provides a model of the selection axis.

Figure 1: Selection Axis Model

A selection axis is an implementation of open axes expressed in terms of an XPath function that yields a sequence.

Examples of selection axes fulfill these use cases:

4 Coordinate ordering

The XPath selection expression produces a sequence. Although most XPath operations result in sequences that are in source instance document node order, sequences may be sorted (such as account code or name, using custom functions such as described in [XPATH SORTING]).

5 Context Item

The context item for the XPath expression of a selection may be a fact item, if the inherited axes of the selection axis, together with the coordinates of the opposite direction axisType coordinates, specify a fact item, or otherwise an empty sequence.

6 Selection

A selection yields any node of an instance or atomic data produced by an XPath expression.

If a nonabstract selectionAxis is the last coordinate for an axis, the select expression provides a way of generating renderable data from a otherwise-bound fact for a cell. For example, if the inheriting coordinates identify a fact, then the select expression may produce an aspect of the fact, such as a period end date or unit, or a footnote (or footnotes sequence), or any other data derived by table lookup.

7 Headers

Same as other axes, labels or messages may be used

8 Syntax

<xtable:selectionAxis> is an element with attributes @name and @select.

@name (on the axis-arc relationship) behaves like a variable name, so that the selection value can be referred to by XPath construct $name.

@coveredAspect: an enumeration type specifying what aspect is to be matched and covered. Enumeration values may be

[Hugh Wallis: This is an early list - to be updated]:

@select is an XPath expression yielding a sequence of nodes (of instance document), atomic values (displayable), or opaque objects (relationships from xfi: relationship functions, but must be abstract).

The following attributes are inherited from openAxis and may be used on a selectionAxis resource element:

Appendix A Normative schema

The following is the XML schema provided as part of this specification. This is normative. Non-normative versions (which should be identical to these except for appropriate comments indicating their non-normative status) are also provided as separate files for convenience of users of the specification.

NOTE: (non-normative) Following the schema maintenance policy of XBRL International, it is the intent (but is not guaranteed) that the location of non-normative versions of these schemas on the web will be as follows:

  1. While any schema is the most current RECOMMENDED version and until it is superseded by any additional errata corrections a non-normative version will reside on the web in the directory http://www.xbrl.org/2011/ - during the drafting process for this specification this directory should contain a copy of the most recent published version of the schema at http://www.xbrl.org/2011/selection-axis.xsd.
  2. A non-normative version of each schema as corrected by any update to the RECOMMENDATION will be archived in perpetuity on the web in a directory that will contain a unique identification indicating the date of the update.
<schema
xmlns:variable
="http://xbrl.org/2008/variable"

xmlns
="http://www.w3.org/2001/XMLSchema"

xmlns:table
="http://xbrl.org/2011/table"
targetNamespace="http://xbrl.org/2011/table" elementFormDefault="qualified">
<import namespace="http://xbrl.org/2008/variable" schemaLocation="http://www.xbrl.org/2008/variable.xsd"/>
<complexType name="selectionAxis.type">
<complexContent mixed="false">
<extension base="table:openAxis.type">
<attribute name="name" type="QName" use="required"/>
<attribute name="select" type="variable:expression" use="required"/>
</extension>
</complexContent>
</complexType>
<element id="xml-selection-axis" name="selectionAxis" substitutionGroup="table:openAxis" type="table:selectionAxis.type"/>
</schema>

Appendix B References

XML NAMES
W3C (World Wide Web Consortium). "Namespaces in XML 1.0 (Second Edition)"
Tim Bray
, Dave Hollander, Andrew Layman, and Richard Tobin.
(See http://www.w3.org/TR/REC-xml-names/)
XPATH SORTING
"XPath 2.0: It Can Sort!"
Pavel Hlousek.

(See http://www.ximeco.org/Xime/XPathCanSortHlousek.pdf)

Appendix C Intellectual property status (non-normative)

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to XBRL International or XBRL organizations, except as required to translate it into languages other than English. Members of XBRL International agree to grant certain licenses under the XBRL International Intellectual Property Policy (www.xbrl.org/legal).

This document and the information contained herein is provided on an "AS IS" basis and XBRL INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

The attention of users of this document is directed to the possibility that compliance with or adoption of XBRL International specifications may require use of an invention covered by patent rights. XBRL International shall not be responsible for identifying patents for which a license may be required by any XBRL International specification, or for conducting legal inquiries into the legal validity or scope of those patents that are brought to its attention. XBRL International specifications are prospective and advisory only. Prospective users are responsible for protecting themselves against liability for infringement of patents. XBRL International takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Members of XBRL International agree to grant certain licenses under the XBRL International Intellectual Property Policy (www.xbrl.org/legal).

Appendix D Acknowledgements (non-normative)

This document could not have been written without the contributions of many people.

Appendix E Document history (non-normative)

DateAuthorDetails
01 October 2011Herm Fischer

Initial draft

11 October 2011Hugh Wallis

Incorporated some changes proposed by Victor Morilla preparatory to creating DPWD

05 December 2011Herm Fischer

Update class diagram, provide schema definitions.

19 December 2011Herm Fischer

Editorial updates suggested by Roland Hommes in WG e-mail of 2011-12-08.

Appendix F Errata corrections in this document

This appendix contains a list of the errata corrections that have been incorporated into this document. This represents all those errata corrections that have been approved by the XBRL International Rendering Working Group up to and including 21 December 2011.

No errata have been incorporated into this document.