[Home] [By Thread] [By Date] [Recent Entries]
Cynthia,
It looks like your problem is associated with setting your variable $samePath to the boolean true() or false(), and then later on checking if $samePath equals the string 'false': ^^^^^^^^^
^^^^^^^^
^^^^^^^^^
</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$samePath='false'"> ^^^^^^^^^^^^^^^^^^^ If you change that last xsl:when to: <xsl:when test="not($samePath)"> uou should be all set. For the example you provided, I get: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Getting relative paths</title> </head> <body>/web_cabinet/folder1/folder2/folder3<br>/web_cabinet/folder1/folder2/linkingToDocument.doc<br></body> </html> Cheers, ...sam
|

Cart



