Display xml comment using xslt
Hi !
I have an xml that looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<Profile name="Default">
<Constants>
<!-- Reference table -->
<add key="APPLICATION" value="1"/>
<!-- Internet dealer -->
<add key="INTERNET" value="2"/>
</Constants>
<Messages>
<add key="Validation" value="Invalid"/>
</Messages>
</Profile>
Now using xslt, it should be able to display the format below. Basically, all the add key in the xml should be in the first column, followed by the value and the comment of the node. Currently, the comment node is not implemented, and I am having a difficulty in adding the comment in the third column since not all xml node have comments. Can any of you provide me a code snippet or syntax that would parse the comment of the xml node and display it in the column of a table?
APPLICATION
1
Reference table
INTERNET
2
Internet dealer
|