Re: [xsl] What is a bulletproof way to assign a variable this value: single quote, value of an element, single quote?

Subject: Re: [xsl] What is a bulletproof way to assign a variable this value: single quote, value of an element, single quote?
From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 May 2024 10:10:16 -0000
On 14/05/2024 08:20, Roger L Costello costello@xxxxxxxxx wrote:
Peter Flynn wrote:

* Use a curly apostrophe b in the data, not a unidirectional one '

That is an interesting idea. However, I have two concerns with it:

1.That is changing the data. Isnbt there some kind of XML law which says, b/thou shall not change the data/b?

No. If the client supplies me with broken data, I have to change it (or get them to change it) before I can continue.


2.Although the left curly b might be appropriate for data like O'Neil,

Right. That was the instance in case.


it isnbt appropriate for data like this:
W H 'BUD' BARRON, /i.e./, W H bBUDbBARRON doesnbt seem right.

Of course not. You did not mention this case. You need to use the correct open and close quotes.

Peter

Current Thread