Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Convert XSL to newer version

From: "Anthony Jones" <Ant@------------.--->
To: 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




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