ASP in XSL Document
am 05.06.2007 15:15:55 von david
First of all, yes we are still using classic ASP, lol. I have a XSL
document that is reading in info from a XML file. I have to display
serveral server side dates on the page. Is there anyway to use ASP
code inside a XSL document.
I have tried the following.
]]>
This does not work. In the view source the < and > get changed to
&ls; and >. Is this possible? Is there any other way to read a
server side date from this xsl page? If not I will have to re design
the hole page. Thanks for the help.
Re: ASP in XSL Document
am 05.06.2007 17:27:18 von Martin Honnen
David wrote:
> First of all, yes we are still using classic ASP, lol. I have a XSL
> document that is reading in info from a XML file. I have to display
> serveral server side dates on the page. Is there anyway to use ASP
> code inside a XSL document.
>
> I have tried the following.
>
>
> ]]>
>
>
> This does not work. In the view source the < and > get changed to
> &ls; and >. Is this possible? Is there any other way to read a
> server side date from this xsl page? If not I will have to re design
> the hole page. Thanks for the help.
If you are using MSXML to perform the XSLT transformation then you have
several choices, you can use stylesheet parameters (top level xsl:param
elements in the form e.g.
) then when scripting the transformation with MSXML you can set such
parameters before the transformation is being run:
It is also possible to write extension functions with JScript or
VBScript that you can call then in the stylesheet, check the
msxsl:script element documentation:
Finally you can pass in extension objects and call their methods:
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/