Slightly improve text in path spec

This commit is contained in:
Tony Garnock-Jones 2023-03-17 10:38:43 +01:00
parent f6032d899f
commit 89b96f623d
1 changed files with 5 additions and 1 deletions

View File

@ -6,8 +6,12 @@ title: "Preserves Path"
Tony Garnock-Jones <tonyg@leastfixedpoint.com>
August 2021. Version 0.1.0.
XML documents can move into attributes, into text, or into children.
Preserves Path is roughly analogous to
[XPath](https://www.w3.org/TR/2017/REC-xpath-31-20170321/), but for Preserves values: just as
XPath selects portions of an XML document, a Preserves Path uses *path expressions* to select
portions of a `Value`.
XPaths on XML documents can move into attributes, into text, or into children.
Preserves documents don't have attributes, but they do have children
generally and keyed children in particular. You might want to move
into the child with a particular key (number, for sequences, or