From 89b96f623d70d63b008d06738bb61f2044c6b496 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 17 Mar 2023 10:38:43 +0100 Subject: [PATCH] Slightly improve text in path spec --- preserves-path.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/preserves-path.md b/preserves-path.md index 77e8755..81e7178 100644 --- a/preserves-path.md +++ b/preserves-path.md @@ -6,8 +6,12 @@ title: "Preserves Path" Tony Garnock-Jones 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