From 3de44f79761bd66d766b12359e06457a214a3bbc Mon Sep 17 00:00:00 2001 From: Michael Kay Date: Wed, 13 Mar 2024 17:56:25 +0000 Subject: [PATCH] Change book used in example --- specifications/xslt-40/src/xslt.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/specifications/xslt-40/src/xslt.xml b/specifications/xslt-40/src/xslt.xml index c9867d15a..e93c8bd5a 100644 --- a/specifications/xslt-40/src/xslt.xml +++ b/specifications/xslt-40/src/xslt.xml @@ -12600,10 +12600,10 @@ and version="1.0" otherwise.

"Category": "Computers", "Price": 42.60 }, - { "Title": "How to Win Elections", - "Authors": ["Donald Trump", "Boris Johnson"], - "Category": "Politics", - "Price": 56.00 + { "Title": "Steppenwolf", + "Authors": ["Hermann Hesse"], + "Category": "Fiction", + "Price": 12.00 }, { "Title": "How to Explore Outer Space with Binoculars", "Authors": ["Bruce Betts", "Erica Colon"], @@ -14094,10 +14094,10 @@ and version="1.0" otherwise.

"Category": "Computers", "Price": 42.60 }, - { "Title": "How to Win Elections", - "Authors": ["Donald Trump", "Boris Johnson"], - "Category": "Politics", - "Price": 56.00, + { "Title": "Steppenwolf", + "Authors": ["Hermann Hesse"], + "Category": "Fiction", + "Price": 12.00, "Note": "out of print" }, { "Title": "How to Explore Outer Space with Binoculars", @@ -14122,11 +14122,11 @@ and version="1.0" otherwise.

Each of these books, being represented by a map with more than two entries, is processed by a template rule that splits the map into its multiple entries, each represented as a singleton map (a map with one key and one value). One of these singleton maps, for example, would be - map{"Title": "How to Win Elections"}.

+ map{"Title": "Steppenwolf"}.

The default processing for a singleton map of the form - map{"Title": "How to Win Elections"} is to return the value unchanged. - This is achieved by applying templates to the string "How to Win Elections"; + map{"Title": "Steppenwolf"} is to return the value unchanged. + This is achieved by applying templates to the string "Steppenwolf"; the default template rule for strings returns the string unchanged.

When a singleton map in the form map{"Note": "out of print"} is encountered, no output