Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT scripts

From: "Mike Sharp" <rdcpro@-------.--->
To: NULL
Date: 1/4/2005 12:11:00 AM
The .NET XslTransform class supports it as well.

If yaya is talking about running Javascript code, as an extension function, 
inside an XSLT, you might want to take a look at http://www.exslt.org/ 
(which, unfortunately, appears to be down at the moment). There are efforts 
for EXSLT.NET as well.  Dimitre Novatchev wrote an interesting article on 
how to implement EXSLT in MSXML as well, but in the past I've simply 
"borrowed" the extensions I needed, and coded them into my XSLT.

One thing though: I would also strongly caution yaya about using Javascript 
that exhibits side effects. Do not use Javascript to "get around" the 
immutability of xsl variables.  In other words, don't use global variables 
at all in extension functions--make sure your extensions are all pure 
functions.

If yaya is talking about executing an XML/XSLT transformation using 
javascript, that's another matter altogether, and I've got a lot of examples 
on my site:

http://rdcpro.com

Regards,
Mike Sharp



"Neil Smith [MVP Digital Media]" <neil@n...> wrote in message 
news:kkgat0hui8b75cnto4e1q2ceistir77t52@4......
> Very few processors support javascript - only MSXML and Sablotron that
> I know of for sure (and you need to load the extension for Sablotron).
>
> This page shows the typical MS syntax and namespaces you need to add :
> http://msdn.microsoft.com/msdnmag/issues/0900/xml/figures.asp#fig10
>
> You might also benefit from this search :
> http://www.google.co.uk/search?hl=en&safe=off&q=msxml%3Ascript+site%3Amsdn.microsoft.com&meta=
>
> Cheers - Neil
>
> On Fri, 31 Dec 2004 09:59:20 -0800, "guruyaya" <guruyaya@0...>
> wrote:
>
>>Hello all
>>I could not find any good matirial that explains the usage of javascript
>>based scripts in XSLT. If anyone has a link, or knows a good book about 
>>it,
>>plz send me a link or a notice.
>>10x in advance
>>yaya
>>
> 




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