[PATCH 1/2] Beautify location string in MacDive XSLT imports

Dirk Hohndel dirk at hohndel.org
Sat Feb 9 09:44:26 PST 2013


subsurface at henrik.synth.no writes:

> From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
>
> "Country, Location, Site" looks better than "Country Location Site"

The problem with that is if people didn't set one of those fields you
get trailing commas or double commas, etc...

/D

> ---
>  xslt/MacDive.xslt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt
> index bd1ba9c..5137862 100644
> --- a/xslt/MacDive.xslt
> +++ b/xslt/MacDive.xslt
> @@ -68,7 +68,7 @@
>        </xsl:variable>
>  
>        <location>
> -        <xsl:value-of select="concat(country, ' ', location, ' ', site)"/>
> +        <xsl:value-of select="concat(country, ', ', location, ', ', site)"/>
>        </location>
>  
>        <xsl:if test="sitelat != ''">
> -- 
> 1.8.1.2
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface



More information about the subsurface mailing list