Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to test bug in XSLT

Status
Not open for further replies.

satellite03

IS-IT--Management
Dec 26, 2003
248
IN
Hi, does XSLT dont give opportunity to test the bug ?

i do test bug in my program java,C,C++ by simply printing variables etc. printing is a big tool of debugging in java,c,c++ etc.


but how do i test my bug if my XSLT program does not work ?

what is the way ? i dont want to learn any tool specific bugging procedure because thats not absolute. if tool changes you can not test bug.

so is there any trick you do to test the bug in XSLT program.

can you please tell the way ?
thank you
 
Most of the problems with XSLT arise because one of the XPaths is incorrect. You can output which node you're looking at by using:
Code:
<xsl:value-of select="name(...myXPath...)"/>
Also, if you strip down the code to the bare essentials, make sure that works and then build onto it.

Other than that, use templates where you can (rather than for-each).

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top