⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Repository
Download (643 Bytes)
Support #6384
» substring-after.xquery
Mircea Enachescu
, 2024-04-08 14:16
declare
namespace
tei
=
"http://www.tei-c.org/ns/1.0"
;
declare
default
collation
"http://www.w3.org/2013/collation/UCA?lang=cs-CZ"
;
let
$sps
:=
//
tei:sp
let
$whos
:=
distinct-values
(
$sps
/
@who
)
let
$persons
:=
for
$who
in
$whos
order
by
$who
let
$speakers
:=
$sps
[
@who
=
$who
]
/
tei:speaker
return
(:
returns 'GA' and 'IO' with Saxon-HE XQuery 12.3, but 'GA' and 'IO' with Saxon-PE and Saxon-EE
:)
<person
xmlns=
"http://www.tei-c.org/ns/1.0"
xml:id=
"
{
substring-after
(
$who
,
'#'
)}
"
/>
return
<listPerson
xmlns=
"http://www.tei-c.org/ns/1.0"
>
<head>
List
of
characters
</head>
{
$persons
}
</listPerson>
« Previous
1
2
3
Next »
(1-1/3)
Loading...