Subject: Re: [xsl] single quotes instead of double From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 21 Nov 2011 07:41:41 -0500 |
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.
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] single quotes instead of , Hermann Stamm-Wilbra | Thread | Re: [xsl] single quotes instead of , Andrew Welch |
Re: [xsl] single quotes instead of , Hermann Stamm-Wilbra | Date | Re: [xsl] single quotes instead of , David Carlisle |
Month |