Bug 214235 - [xslt] [debug] Nodes and String variables should render differently
Summary: [xslt] [debug] Nodes and String variables should render differently
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsl (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 3.1   Edit
Assignee: David Carver CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2008-01-03 09:36 EST by David Carver CLA
Modified: 2009-04-30 14:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2008-01-03 09:36:38 EST
We either need a seperate view, or better detection on when a variable contains result-Node data or is just a string.  If nodeset result, then it should be expandable like the Java variables that are Class variables.

Currently all variables display as string results.
Comment 1 Doug CLA 2008-03-21 06:37:33 EDT
Nodes are now dislayed differently to strings, so they are at least distinguishable.

The nodeset is not expandable however. I'll leave that as an enhancement.
Comment 2 David Carver CLA 2008-06-05 21:41:43 EDT
Mass Migration to wtp.inc.xsl
Comment 3 David Carver CLA 2008-08-09 20:50:53 EDT
We should try to make this expandable in the the 1.0 time frame.  Currently when debugging with Xalan it displays the node as:

org.apache.xml.dtm.ref.DTMNodeProxy@1383209

Which isn't that helpful during debugging scenarios.  A work around is to extract a value from the node, and store it in a xsl:variable so that at least part of the text can be reviewed, but this is an added step that doesn't need to exist.

Result Set Fragments for XSLT 1.0 should be expandable as well as Node Set.

Comment 4 David Carver CLA 2008-11-12 23:48:03 EST
Doug I can take a look at this one to see if I can enhance this.
Comment 5 David Carver CLA 2008-11-19 23:51:15 EST
Nodes, can be expanded, strings can't.   Also, empty Nodesets can not be expanded.    Right now, a Nodeset, will return some xml markup representing the values of the nodeset.   i.e. <doc> <test>some text</test> </doc>

The XSLValue should parse this and build an appropriate DOM document which can be be parsed, and then displayed as necessary when the nodelist is expanded.

Comment 6 David Carver CLA 2008-11-20 22:26:00 EST
Nodesets are now expandable.  Need to work on differentiating between Elemens, Attributes, Comments and Processing instructions.

Comment 7 David Carver CLA 2008-11-21 11:52:35 EST
All XML nodes are rendered with a different image according to their type in the list.
Comment 8 David Carver CLA 2008-11-21 15:05:10 EST
This is working pretty well now.  I'm sure there are some problems with large markup streams, but will address those as we find them.  The functionality requested by this bug is implemented.
Comment 9 David Carver CLA 2009-04-30 14:25:33 EDT
mass update to 3.1 target due to movement from wtp incubator to wtp source editing lost the original milestones.