Subject:Finding a node by its name! Author:Mark Maltby Date:08 Jun 2006 03:55 AM Originally Posted: 08 Jun 2006 03:56 AM
I need to create a dynamic table based on fields required by the user. I have one piece of xml which describes my table. So in this xml is a list of the column headers I need. I populate the table headers from this. I then have another piece of xml which contains the contents for this table. I need to match up the column headers from the first xml with the node names in the other xml and then extract the xml from the matching node.
Is it possible to read the node name instead of its contents to do this test?
Subject:Finding a node by its name! Author:Minollo I. Date:08 Jun 2006 11:04 AM
This should work ok if you use the Stylus Studio built-in processor or Saxon 8.x; with other processors you'll need to use proprietary extensions to handle $colNames as a node set.