[xsl] Problems with JS inside XSL Files

Subject: [xsl] Problems with JS inside XSL Files
From: "Paulo \(Shape.Tech\)" <paulo@xxxxxxxxx>
Date: Mon, 28 Oct 2002 12:55:26 -0200
Thanks Mac :)))

well, I´m having one more problem.
in my XSLT file I have this JavaScript code:

...
var div  = "<" + "div style=" + "position:absolute; width:126px;
height:122px; z-index:1" + ">" + "<" + "img src=" +
"imagens/seta_webmail.gif" + "width=" + "126" +  "height=" + "122" + ">" +
"</img></div>";
document.write(div);
...

and I´m receiving this error message:

msxml4.dll error '80004005'

Error while parsing "file:///D:/WEB/dorio.xml/webmail.xsl". Illegal
qualified name character.

can someone help me?
I just want to use the document.write to write this HTML code:

<div id="Layer1" style="position:absolute; width:126px; height:122px;
z-index:1"><img src="imagens/seta_webmail.gif" width="126"
height="122"></div>

obs: i´m using the XMLSPY editor and its pointing to the  "<" as the reason
of the error.

thanks a lot

PAulo Fabiano
[]´s

----- Original Message -----
From: "Mac Rost" <mrost@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, October 28, 2002 1:28 PM
Subject: RE: [xsl] Parameters


> Paulo,
> Don't forget, I know that I do this sometimes, to access that specific
parameter, you will need to have a $ before the name such as <xsl:value-of
select="$op"/> (something to that effect.)
> HTH,
> Mac
>
> [Ben wrote]
> It really depends on your processor - it's a processor specific problem.
However, since you are using ASP, I'll assume you are using MSXML 3+.
>
> For this, you can do the following:
>
> Add the following to your ASP [before oXSLProcessor.Transform()]:
>
> Call oXSLProcessor.addParameter("op",Request.QueryString("op"))
>
> In your XSL, you will need to add a parameter as a child of
<xsl:stylesheet>
>
> <xsl:param name="op"/>
> []
> [Paulo wrote:]
> Hi all,
> everybody knows if it´s possible I get a param value from an URL with XSLT
? for exemple:
>
> www.xxx.com.br/index.asp?op=abc.xsl
>
> can I get this OP value with xslt ?
>
> thanks
> Paulo Fabiano Langer
> Web DEsigner/Develper
>
> Rio de Janeiro - BRazil
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread