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

converting xsl-wd to xsl1, msxml script changes

Subject: converting xsl-wd to xsl1, msxml script changes
From: "woody" <woody@xxxxxxxxxxxxxx>
Date: Wed, 12 Feb 2003 12:14:59 -0000
msxsl replace function
Hi,

I have inherited a load of msxml2 xsl files with my new job and as well as
updating them I am converting them to 'proper' xslt (or as proper as I can
get!).
The conversion of the xsl itself is going ok and isn't causing any major
problems although I am new to xsl. The scripts that are embedded in the xsl
are another matter, most of them don't work.
I have changed all the xsl:eval's to xsl:value-of's and the scripts are
contained in <msxml:script> sections (with namespaces etc) but most of the
functions seem wrong.

I have this one I am working on at the moment which takes the whole file,
converts it to an xml-file-string and does a regular expression search and
replace:

function transform(node)
{
var str = node.xml.replace(/<\/?[^T\/][^>]*>/g,"");
....
}

I am sure there is an xsl way of doing this but this has been replaced by
javascript for speed.

however it doesn't work anymore - I have several files with functions that
don't work.

Is there any reference out there to these sort of things or a way of
debugging it? I have ordered some books but am still waiting for amazon to
deliver them, I also have all the microsoft documentation (for what it is
worth) although I can't find the answer in that.


 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.