Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Trying to write a JavaScript variable the value of a form field

From: "Bruso, John" <jbruso@------------>
To:
Date: 10/3/2005 10:09:00 PM
I have a javascript is an external file called via the "script src" tag, but
it seems that I can not place this within the <input value=""...  HTML tag.

<input value="<script src="{$themePath}/scripts/link-parsed-variable.js"
type="text/javascript"><xsl:text> </xsl:text></script>" name="uP_fname"
type="hidden" />

I want to put a javascript document.write within the <input value=""...

How do I do that within XSL?


Thanks!

    -------------------------
John Bruso
Web Developer
ph  307.674-6446-2608






-----Original Message-----
From: knocte [mailto:knocte@xxxxxxxxx]
Sent: Monday, October 03, 2005 1:07 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Simple (external XML) internationalization with XSLT?

M. David Peterson escribis:
> Hi Andrew,
>
> I'm guessing this is just a typo as your XML parser would have
> screamed at you before even getting to the transformation process.
> But just in case, this:
>
> <i18n:string key="1">Rendered image</string>
> <i18n:string key="2">Alt text</string>
>
> should be:
>
> <i18n:string key="1">Rendered image</i18n:string>
> <i18n:string key="2">Alt text</i18n:string>
>
> With the list of folks who have answered your post thus far I'm sure
> if they saw it as anything more than a typo they would have said so...
> but I thought it might be worth mentioning on the off chance that this
> is a copy-and-paste from your editor to email and it simply got
> overlooked by the others.  If this is the case, your not going to see
> what you want to see until you fix this at which point you can begin
> to debug your transformation if this in and of itself doesn't fix
> things.
>

Thanks for the warning. I am aware of this. This typo didn't come from a
copy-paste but yes from a "reducing" technique to a minimal testcase,
without testing it ;)

    Andrew

--


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent