[monodoc] Fix XPath query in image attribute creation
authorJeremie Laval <jeremie.laval@gmail.com>
Fri, 23 Mar 2012 17:54:53 +0000 (17:54 +0000)
committerJeremie Laval <jeremie.laval@gmail.com>
Fri, 23 Mar 2012 17:54:53 +0000 (17:54 +0000)
mcs/tools/monodoc/Resources/mdoc-html-utils.xsl

index 94560382e5ded9bdde544c317283b07146526fdb..3f1dd9b6c3a8fcccbfa4c66504fafc3564be027b 100644 (file)
                          <xsl:when test="count(@src)&gt;0">
                                <xsl:value-of select="@src" />
                          </xsl:when>
-                         <xsl:otherwise>
-                               <xsl:value-of select="source-id:{$source-id}:{@href}" />
-                         </xsl:otherwise>
+                         <xsl:when test="count(@href)&gt;0">
+                               <xsl:value-of select="concat('source-id:', $source-id, ':', @href)" />
+                         </xsl:when>
                        </xsl:choose>
                  </xsl:attribute>
                  <xsl:attribute name="class">