Subject: Re: [xsl] What is a bulletproof way to assign a variable this value: single quote, value of an element, single quote? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 13 May 2024 14:56:31 -0000 |
On 13/05/2024 16:50, Piez, Wendell A. (Fed) 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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] What is a bulletproof way, Piez, Wendell A. (Fe | Thread | Re: [xsl] What is a bulletproof way, Piez, Wendell A. (Fe |
Re: [xsl] What is a bulletproof way, Piez, Wendell A. (Fe | Date | Re: [xsl] What is a bulletproof way, Piez, Wendell A. (Fe |
Month |