Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Convert XSL to newer version [Thread Next] Re: Convert XSL to newer versionTo: NULL Date: 10/12/2007 6:03:00 PM "brian_harris" <brianharris@d...> wrote in message news:CC6C08D9-6CC2-4E74-8E6E-554E4B650757@m...... > I am trying to convert XSL http://www.w3.org/TR/WD-xsl to > http://www.w3.org/1999/XSL/Transform > I am trying to find a program that will convert .xsl for me, I have read > that their is something out thier. I have not been able to find it, a few > links I did find did not work. > > The old code has alot of items that do not work. I started to try to > convert it by hand, but since their where alot of thing I was not sure how to > convert I stopped. > I use alot of xsl:eval, xsl:script and xsl:cdata. > > So I then tried to find a way where I could have both old and new verisons > in same code so I could test my changes as I mad them. I setup the following > namespaces > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:msxsl="urn:schemas-microsoft-com:xslt" > xmlns:old="http://www.w3.org/TR/WD-xsl" > So I then changed xsl:eval, xsl:script, xsl:cdata, xsl:if to old:eval > ,old:script, old:cdata, old:if. When I did this and then ran code I got > following Error: > The XSL processor stack has overflowed - probable cause is infinte template > recursion. > Since this file is a few hunderd lines long and is actually just part of an > addon to an even larger application. I am not sure how to best procced. I > would like to find a way to do a little bit at a time and check that > application is still working correctly. > Another approach is take a fixed chunk of XML. Run it through using the old transform to get a result (make sure the input XML tests each template in the transform). Save the result in a text file. Now go through the transform and adjust it to conform to standards (or it really have to use some msxml:script). Run the same XML through the new transform. Compare results. When your new result isn't substantially different from the original you're done. If you get stuck generating a particular feature post here and we'll help. Please though include a sample of the input XML and desired output. It will be easier for us to help than try to decipher a non-conformant syntax that most aren't using anymore. -- Anthony Jones - MVP ASP/ASP.NET | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
