[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problems with JS inside XSL Files

Subject: RE: Problems with JS inside XSL Files
From: "Mac Rost" <mrost@xxxxxxxxxxxxx>
Date: Mon, 28 Oct 2002 10:11:18 -0600
80004005 error while encoding movie
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.