Click here to Skip to main content
15,894,291 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: How to Check whether we can use XSL 2.0? Pin
ChrisKo4-Sep-07 13:40
ChrisKo4-Sep-07 13:40 
GeneralRe: How to Check whether we can use XSL 2.0? Pin
George L. Jackson4-Sep-07 16:26
George L. Jackson4-Sep-07 16:26 
Questionread xml using javascript Pin
pradeep kumarappagari3-Sep-07 1:37
pradeep kumarappagari3-Sep-07 1:37 
Questionhow to put a space between the word e,g 'LogConfig' = 'Log Config' Pin
Rocky#3-Sep-07 1:27
Rocky#3-Sep-07 1:27 
Questionxmlbulkload Pin
Panchal Hardik3-Sep-07 1:16
Panchal Hardik3-Sep-07 1:16 
AnswerRe: xmlbulkload Pin
Panchal Hardik3-Sep-07 2:40
Panchal Hardik3-Sep-07 2:40 
QuestionProblems with converting large .csv files to xml... Pin
tiasoft2-Sep-07 20:41
tiasoft2-Sep-07 20:41 
QuestionProblem in displaying the names of XML nodes Pin
Rocky#31-Aug-07 0:20
Rocky#31-Aug-07 0:20 
hi every buddy!

well I'm trying to display the XML data (sample given below ) in a table using XSL and as i've highlighted in the XML the results node is the one giving me trouble. I'm trying to do this in XSL as:
<tr class="nonSelectedRow">
<pre><xsl:for-each select="*[node() and node()!='Results']"></pre>
<th><xsl:value-of select="name()"/></th>
</xsl:for-each>


</tr>
-------------------------------------------

The problem is that I wanna display the data in two seperate tables such as

<pre>----------------------------------------
inputs |
----------------------------------------
property | phase | basis | calc | Value |
----------------------------------------</pre>

and...........
<pre>

----------------------------------------------------
inputs | Outputs |
----------------------------------------------------
property | phase | basis | calc | Compound |Value |
----------------------------------------------------</pre>
The XML part is given here:

--------------------------------
<code>
<CallSequence>
<Call>
<ObjectType>Material Object</ObjectType>
<ObjectName>Mix out</ObjectName>
<Interface>ICapeThermoMaterialObject</Interface>
<Method>SetProp</Method>
<Arguments>
<Property>Volume</Property>
<Phase>Overall</Phase>
<Basis>Mole</Basis>
<Calc>Mixture</Calc>
<pre> <Results>
<Value>0.000018075</Value>
</Results></pre>
</Arguments>
<ReturnCode>No Error</ReturnCode>

</Call>
<Call>
<ObjectType>Material Object</ObjectType>
<ObjectName>Mix out</ObjectName>
<Interface>ICapeThermoMaterialObject</Interface>
<Method>GetProp</Method>
<Arguments>
<Property>Fraction</Property>
<Phase>Overall</Phase>
<Basis>mole</Basis>
<Calc>null</Calc>
<pre> <Results>
<Compound>
<Name>Hydrogen</Name>
<Value>0.355979900</Value>
</Compound>
<Compound>
<Name>Methane</Name>
<Value>0.018735784</Value>
</Compound>
<Compound>
<Name>Benzene</Name>
<Value>0.401813320</Value>
</Compound>
<Compound>
<Name>Toluene</Name>
<Value>0.223470992</Value>
</Compound>
<Compound>
<Name>BiPhenyl</Name>
<Value>0.000000005</Value>
</Compound>
</Results></pre>
</Arguments>
<ReturnCode>No Error</ReturnCode>
</Call>
</CallSequence>
</code>

Can anyone tell me how to display the data in this format using the way I'm trying to do in XSL. Coz I wanna make it as general as possible. I dont wanna be specific so that it can cater the changes in the future.

Thanks in advance!!!

Rocky

You can't climb up a <i>steep</i> ladder with your hands in your pockets.
AnswerRe: Problem in displaying the names of XML nodes Pin
George L. Jackson31-Aug-07 10:52
George L. Jackson31-Aug-07 10:52 
GeneralRe: Problem in displaying the names of XML nodes Pin
Rocky#2-Sep-07 20:29
Rocky#2-Sep-07 20:29 
GeneralRe: Problem in displaying the names of XML nodes Pin
George L. Jackson3-Sep-07 4:39
George L. Jackson3-Sep-07 4:39 
GeneralRe: Problem in displaying the names of XML nodes Pin
Rocky#3-Sep-07 19:11
Rocky#3-Sep-07 19:11 
AnswerRe: Problem in displaying the names of XML nodes Pin
George L. Jackson31-Aug-07 11:41
George L. Jackson31-Aug-07 11:41 
QuestionHow to add xml-Stylesheet line to xml-file? [modified] Pin
error140830-Aug-07 4:41
error140830-Aug-07 4:41 
AnswerRe: How to add xml-Stylesheet line to xml-file? Pin
led mike30-Aug-07 5:06
led mike30-Aug-07 5:06 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
error140830-Aug-07 5:09
error140830-Aug-07 5:09 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
led mike30-Aug-07 5:20
led mike30-Aug-07 5:20 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
error140830-Aug-07 5:23
error140830-Aug-07 5:23 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
led mike30-Aug-07 6:02
led mike30-Aug-07 6:02 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
error140830-Aug-07 7:43
error140830-Aug-07 7:43 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
George L. Jackson30-Aug-07 8:24
George L. Jackson30-Aug-07 8:24 
GeneralRe: How to add xml-Stylesheet line to xml-file? Pin
led mike30-Aug-07 10:02
led mike30-Aug-07 10:02 
QuestionGeneration of inline code in ASP.NET by XSL [modified] Pin
Wild Rover29-Aug-07 1:41
Wild Rover29-Aug-07 1:41 
AnswerRe: Generation of inline code in ASP.NET by XSL Pin
George L. Jackson29-Aug-07 12:32
George L. Jackson29-Aug-07 12:32 
GeneralRe: Generation of inline code in ASP.NET by XSL Pin
Wild Rover29-Aug-07 20:45
Wild Rover29-Aug-07 20:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.