equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="UTF-8" ?> |
|
2 <!-- |
|
3 (C) Copyright Nokia Corporation and/or its subsidiary(-ies) 2009 - 2010. All rights reserved. |
|
4 --> |
|
5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
6 version="1.0"> |
|
7 |
|
8 <xsl:template name="strip-url-fragment"> |
|
9 <xsl:param name="url"/> |
|
10 <xsl:choose> |
|
11 <xsl:when test="contains($url, '#')"> |
|
12 <xsl:value-of select="substring-before($url, '#')"/> |
|
13 </xsl:when> |
|
14 <xsl:otherwise> |
|
15 <xsl:value-of select="$url"/> |
|
16 </xsl:otherwise> |
|
17 </xsl:choose> |
|
18 </xsl:template> |
|
19 |
|
20 </xsl:stylesheet> |