xsl-list
[Top] [All Lists]

RE: Problems with JS inside XSL Files

2002-10-28 09:11:18
Paulo,
With the < and > these are reserved characters. Try to use &lt; &gt; and if 
they don't work for using the doc.write in js, use the hex values for the 
brackets,
Mac
[Paulo wrote:]

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

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


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



<Prev in Thread] Current Thread [Next in Thread>