Created by: SEC Office of Structured Disclosure
Various "good" (gd) and "not good" (ng) test files that demonstrate specific iXBRL NonFraction usage
Number | Name | Description | References | Data Inputs | Result Outputs | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_001gd | nonFraction PASS test cases, GOOD | nonFraction PASS test cases, GOOD |
|
|
|||||||||||||||||||
_002gd | NonFraction_testcases_Set2, GOOD | PASS-nonFraction-nesting-scale | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element |
|
|
||||||||||||||||||
_003gd | NonFraction_testcases_Set3, GOOD | PASS nonFraction nesting cases | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element |
|
|
||||||||||||||||||
_004gd | Comments anywhere in the input do not appear in the output, GOOD | PASS-nonFraction-comments |
|
|
|||||||||||||||||||
_005gd | Nested nonFractions, legal combination. | PASS-nonFraction-nesting |
|
|
|||||||||||||||||||
_006gd | nonFraction with scale="-3" and decimals="1", GOOD | PASS-attribute-ix-scale-nonFraction-01 |
|
|
|||||||||||||||||||
_100ng | Nested nonFractions with mis-matched scale attributes, NOGOOD | FAIL-nonFraction-nesting-scale-mismatch | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element |
|
|
||||||||||||||||||
_101ng | Nested nonFractions with mis-matched scale attributes, -3 and 0, NOGOOD | FAIL-nonFraction-nesting-format-mismatch-2 | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element |
|
|
||||||||||||||||||
_102ng | Any ix: qualified attribute and arbitrary unqualified attributes on nonFraction are illegal, NOGOOD | FAIL-nonFraction-any-attribute | The ix:nonFraction element allows attributes in ##other namespace but not in NO namespace. |
|
|
||||||||||||||||||
_103ng | nonFraction mixes text node and element children at two levels, NOGOOD | FAIL-nonFraction-double-nesting | The ix:nonFraction element MUST have exactly one child which SHALL be either an ix:nonFraction element or a text node, unless it has an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_104ng | NonFraction_testcases_Set15, NOGOOD | FAIL-nonfraction-rule-no-xbrli-attributes | The ix:nonFraction element MUST NOT have any attributes with a namespace name which has a value of http://www.xbrl.org/2003/instance |
|
|
||||||||||||||||||
_105ng | NonFraction_testcases_Set15, NOGOOD | FAIL-overflow-nonFraction | The text content is equal to the result of applying the {format transformation} property (if present) to the {value} property |
|
|
||||||||||||||||||
_106ng | NonFraction_testcases_Set4, NOGOOD | FAIL-nonFraction-nesting-scale-mismatch-2 | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element. |
|
|
||||||||||||||||||
_107ng | Tests that nonFraction with child element cannot also have text children., NOGOOD | FAIL-nonFraction-mixed-nesting | The ix:nonFraction element MUST have exactly one child which SHALL be either an ix:nonFraction element or a text node, unless it has an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_108ng | Tests that nonFraction with child element cannot also have text children, NOGOOD | FAIL-nonFraction-mixed-nesting-3 | The ix:nonFraction element MUST have exactly one child which SHALL be either an ix:nonFraction element or a text node, unless it has an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_109ng | Tests that null nonFraction has no non-nil ancestors, NOGOOD | FAIL-nonFraction-nesting-xsi-nil | The ix:nonFraction element MUST have exactly one child which SHALL be either an ix:nonFraction element or a text node, unless it has an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_110ng | nonFraction with numdotdecimal and numcommadecimal of same text, NOGOOD | FAIL-nonFraction-nesting-format-mismatch | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element. |
|
|
||||||||||||||||||
_111ng | nonFraction without a unitRef, NOGOOD | FAIL-nonFraction-missing-unit-attr | The ix:nonFraction element MUST have contextRef, name and unitRef attributes. |
|
|
||||||||||||||||||
_112ng | nonFraction without a name attribute, NOGOOD | FAIL-nonFraction-missing-name-attr | The ix:nonFraction element MUST have contextRef, name and unitRef attributes. |
|
|
||||||||||||||||||
_113ng | nonFraction without a contextRef, NOGOOD | FAIL-nonFraction-missing-context-attr | The ix:nonFraction element MUST have contextRef, name and unitRef attributes. |
|
|
||||||||||||||||||
_114ng | NonFraction_testcases_Set9, NOGOOD | FAIL-nonFraction-invalid-sign-attr | The sign attribute, if present, MUST have the value '-' |
|
|
||||||||||||||||||
_115ng | nonFraction is empty but nil is false, NOGOOD | FAIL-nonFraction-empty-without-xsi-nil | If the ix:nonFraction element has an xsi:nil attribute with the value true, there MUST NOT be any ancestor ix:nonFraction elements. |
|
|
||||||||||||||||||
_116ng | nonFraction has a negative value, NOGOOD | FAIL-nonFraction-ix-format-invalid | The {value} property MUST be valid in accordance with the {format input type} property. |
|
|
||||||||||||||||||
_117ng | An ix:nonFraction has an undefined format although its namespace is okay, NOGOOD | FAIL-nonFraction-ix-format-expanded-name-mismatch | The {format} property MUST match the expanded name implied by the value of the name attribute of a signature element in the relevant Transformation Rules Registry. |
|
|
||||||||||||||||||
_118ng | ix:nonFraction has text content as well as a nested ix:nonFraction, test seems redundant, NOGOOD | FAIL-nonFraction-IXBRLelement-content | The ix:nonFraction element MUST have exactly one child which SHALL be either an ix:nonFraction element or a text node, unless it has an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_119ng | An ix:nonFraction element has nil=false and neither decimals nor precision., NOGOOD | FAIL-nonFraction-nil-attr-false | The ix:nonFraction element MUST have exactly one of: a decimals attribute or a precision attribute, or have an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_120ng | nonFraction with xsi:nil true and decimals, NOGOOD | FAIL-nonFraction-nil-decimal-conflict | The ix:nonFraction element MUST have exactly one of: a decimals attribute or a precision attribute, or have an xsi:nil attribute with the value true. |
|
|
||||||||||||||||||
_121ng | nonFraction with contextRef to nonexistent id, NOGOOD | FAIL-unresolvable-contextRef | There MUST exist an xbrli:context element in the Inline XBRL Document Set for which the actual value of the id attribute is equal to the {context reference} property. |
|
|
||||||||||||||||||
_122ng | nonFraction with unitRef to nonexistent id (actually not clear the spec meant it must be resolved), NOGOOD | FAIL-unresolvable-unitRef | The value of the unitRef attribute is equal to the value of the id attribute of an xbrli:unit element in the Target Document which is s-equal to the {unit definition} property. |
|
|
||||||||||||||||||
_123ng | nonFraction nested with different unitRefs, NOGOOD | FAIL-nonFraction-nesting-unitRef-mismatch | The {format}, {scale} and {unit reference} properties MUST match the respective {format}, {scale} and {unit reference} properties of any ancestor ix:nonFraction element. |
|
|