Hello Peter,
I am a newbie in xslt files. I just took your peice of code and save that
file as test.xsl and tried to display it in the browser. I got this error
Reference to undeclared namespace prefix: 'xsl'. Error processing resource
'file:///C:/Documents and Settings/U311770/Deskt...
<xsl:attribute name="href">
below is the file text
<a>
<xsl:attribute name="href">
<xsl:text>http://testwebi/testlite/admin/remoteMgmt.aspx?id=</xsl:text>
<xsl:value-of select="indexID"/>
<xsl:text>&action=1</xsl:text>
</xsl:attribute>
</a>
am I doing something wrong.
Thanks.
--
vinki
"Peter Flynn" wrote:
Peter Flynn wrote:
vinki wrote:
I just want to pass the below URL in my xslt file.
<a
href="http://testwebi/testlite/admin/remoteMgmt.aspx?id=<xsl:value-of
select="indexID"/>&action=1">
XSLT is XML, so it must be well-formed. You can't put "<" in an
attribute value in XML; and the "&" must be given as "&"
<a>
<xsl:attribute name="href">
<xsl:text>http://testwebi/testlite/admin/remoteMgmt.aspx?id=</xsl:text>
<xsl:value-of select="indexID"/>
<xsl:text>&action=1</xsl:text>
</xsl:attribute>
stuff
</a>
Or use an attribute value template
<a
href="http://testwebi/testlite/admin/remoteMgmt.aspx?id={indexID}&action=1">stuff</a>
///Peter