Re: [xsl] single quotes instead of double

Subject: Re: [xsl] single quotes instead of double
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Mon, 21 Nov 2011 11:44:01 +0000
On 21 November 2011 11:35, Szabo, Patrick (LNG-VIE)
<patrick.szabo@xxxxxxxxxxxxx> wrote:
> Hi,
>
> I'm currently working together with external developers and they sent me
> a stylesheet that has the following code in it:
>
> <xsl:when test="$mode = 'versionbranch'">
>         <xsl:value-of select='$documentid'/>
> </xsl:when>
>
> As you can see there are single quotes where normally at least i would
> write double quotes.
>
> I'm wondering if that could make any difference in any circumstances.

No but while it's technically legal it's inconsistent with the line
above, and with xslt style in general.

The general rule is - use double quotes.


--
Andrew Welch
http://andrewjwelch.com

Current Thread