Subject: Re: [xsl] What is a bulletproof way to assign a variable this value: single quote, value of an element, single quote? From: "Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 13 May 2024 15:03:14 -0000 |
Hi Martin, Indeed, and now I am thinking about how I could get the serializer to rewrite the stuff coming in before bringing it through, as it were. Alas, I haven't the time to research at the moment how to get the processor to use two different character maps in the same run. Because Roger could use a character map first, then his delimiter code (without the map). But then he couldn't stream, or he'd have to hook one streamer to another.... Cheers (thinking too hard not too easy), Wendell From: Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, May 13, 2024 10:57 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] What is a bulletproof way to assign a variable this value: single quote, value of an element, single quote? On 13/05/2024 16:50, Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx<mailto:wendell.piez@xxxxxxxx> wrote: Use a character map so the apos character in "O'Neil" is rewritten into some escaped form? That wouldn't work as there is not only the single quote in the data (e.g. "O'Neil") but also in the surrounding delimiters. A character map used later on serialization would rewrite both. <xsl:variable name="tmp-legacy-elmt-value" as="xs:string+"> <xsl:text>'</xsl:text> <xsl:value-of select="string($legacy-elmt)"/> <xsl:text>'</xsl:text> </xsl:variable> XSL-List info and archive<http://www.mulberrytech.com/xsl/xsl-list> EasyUnsubscribe<http://lists.mulberrytech.com/unsub/xsl-list/3302254> (by email<>)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] What is a bulletproof way, Martin Honnen martin | Thread | [xsl] Question about position(), rick@xxxxxxxxxxxxxx |
Re: [xsl] What is a bulletproof way, Martin Honnen martin | Date | Re: [xsl] What is a bulletproof way, Roger L Costello cos |
Month |