Skip to content

Generic structural locator? #6

@AndrewSales

Description

@AndrewSales

xvrl/schema/xvrl.rnc

Lines 92 to 100 in 19438c4

attribute xpath {
xsd:string { pattern = "/?([^/]+/)*[^/]+" }?
}
|
(
# these are different syntaxes to address JSON documents:
attribute xpath-map-array { xsd:string }
| attribute json-pointer { xsd:string }
| attribute JsonPath { xsd:string }

It really is a question -- I can see the merit of a set of explicit attribute names, but this could well expand/change in the case of JSON. Also, might some circumstances require them not to be mutually exclusive (e.g. locators reported in more than one JSON location syntax)?

Is the below a bridge too far?

<location line='5' column'3'>
  <structural type='xpath'>/foo/bar</structural>
</location>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions