Random photo
Loading...
Domains for sale
|
May 3, 2005Changing value of an XSLT variable (don't laugh!)Can one change a value of a variable in XSLT? Unexpected answer - yes, when debugging XSLT in Visual Studio 2005 Beta2. I'm not sure even if it's a bug. Actually it can be quite useful when debugging to be able to change some values, right? Do other XSLT debuggers allow it? I'm learning new XML stuff in Visual Studio 2005 Beta2. So far I'm still overwhelmed! New System.Xml is sooooo cool, elegant and professional, kudos to the WebData team, this is really a piece of programming art. Still I filed 4 bugs so far in just one hour. May 3, 2005 5:22 PM
| #XML in Visual Studio
Comments
hey man i tried to produce an alternate coloured table using XSL but couldnt achive it using the variable change.....unforunately my VS2005 is not allowing shadowing of the variable....says another scope of same variable exists :( here's my code lisiting....XSL Hi.., Well, these are fairly reasonable limitations I think. Posted by: Oleg Tkachenko at May 5, 2005 1:15 PM1) There are no bugs in our product, only undocumented features :) Anton, I know, XslTransform's full of such surprises. That's one of the cases I tested with XslCompiledTransform the first day I installed Beta2. Posted by: Oleg Tkachenko at May 4, 2005 4:41 PMMaybe you'll laugh, but it IS possible to change the value of a variable with XslTransform: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> Changing the value of a variable with the help of the debugger will be useful only if the XSLT processor is guaranteed not to re-evaluate the variable. Posted by: Dimitre Novatchev at May 4, 2005 2:20 PMPost a comment
|