Today, an XSL discovery relating to relative URLs:
Let's say that in an XSL document you specify an HREF tag like this:
<a href="../../SQCTable.aspx" target="_blank">
And you reference the XSL document from:
http://localhost:3886/sad/CONTENT/
What you want the user to get is:
http://localhost:3886/sad/SQCTable.aspx
Instead what the user gets, because xsl doesn't do relative references, is: http://localhost:3886/sad/CONTENT/sad/SQCTable.aspx
So how do you include a relative url in an xsl document? Well one way is to use xsl:attribute like this:
Let's say that in an XSL document you specify an HREF tag like this:
<a href="../../SQCTable.aspx" target="_blank">
And you reference the XSL document from:
http://localhost:3886/sad/CONTENT/
What you want the user to get is:
http://localhost:3886/sad/SQCTable.aspx
Instead what the user gets, because xsl doesn't do relative references, is: http://localhost:3886/sad/CONTENT/sad/SQCTable.aspx
So how do you include a relative url in an xsl document? Well one way is to use xsl:attribute like this:
<a>
<xsl:attribute name="href">
../../SQCTable.aspx
</xsl:attribute>
SQCTable.aspx
</a>
0 Comments:
Post a Comment
<< Home