From: Robert S. <bob...@us...> - 2004-06-26 23:01:53
|
Update of /cvsroot/docbook/xsl/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20320 Modified Files: graphics.xsl Log Message: @fileref now resolves xml:base attributes. Index: graphics.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/graphics.xsl,v retrieving revision 1.43 retrieving revision 1.44 diff -u -U2 -r1.43 -r1.44 --- graphics.xsl 26 Jun 2004 22:09:02 -0000 1.43 +++ graphics.xsl 26 Jun 2004 23:01:36 -0000 1.44 @@ -1155,3 +1155,19 @@ </xsl:template> +<!-- Resolve xml:base attributes --> +<xsl:template match="@fileref"> + <!-- need a check for absolute urls --> + <xsl:choose> + <xsl:when test="contains(., ':')"> + <!-- it has a uri scheme so it is an absolute uri --> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <!-- its a relative uri --> + <xsl:call-template name="relative-uri"> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + </xsl:stylesheet> |