Re: [xsl] Does starts-with() convert the strings to codepoints?

Subject: Re: [xsl] Does starts-with() convert the strings to codepoints?
From: "Norm Tovey-Walsh ndw@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Jul 2024 12:27:44 -0000
> <Airport_Name>B &amp; B BOYS RANCH              </Airport_Name>
> <name>B &#x26; B BOYS RANCH</name>
>
> Notice the former uses the XML ampersand entity whereas the latter uses hex
character entity for ampersand. This expression:

Thatbs just two different ways to encode bB & B BOYS RANCHb.

You could do

  <element>B &amp; B BOY&#83;&#x20;RANCH</element>

if you wanted to, it would amount to the same thing. So would

  <element>B <![CDATA[&]]> B BOYS RANCH</element>

or any of a very large combinatorial number of other options.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@xxxxxxxxxx>
https://norm.tovey-walsh.com/

> Most men's anger about religion is as if two men should quarrel for a
> lady they neither of them care for.--Edward F. Halifax

[demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]

Current Thread