Click here to Skip to main content
15,900,108 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Problem while using MSXML to get HTTP response Pin
adapterJohn20-Mar-03 21:27
adapterJohn20-Mar-03 21:27 
Generalstrong type in XML Pin
Michal Januszczyk15-Mar-03 5:57
sussMichal Januszczyk15-Mar-03 5:57 
Questioncan XSL do this ? Pin
act_x14-Mar-03 5:25
act_x14-Mar-03 5:25 
AnswerRe: can XSL do this ? Pin
Torsten Mauz14-Mar-03 15:14
Torsten Mauz14-Mar-03 15:14 
GeneralRe: Tree Navigation Pin
act_x13-Mar-03 11:25
act_x13-Mar-03 11:25 
GeneralRe: Tree Navigation Pin
Michael A. Barnhart13-Mar-03 12:15
Michael A. Barnhart13-Mar-03 12:15 
GeneralTree Navigation Pin
act_x13-Mar-03 10:13
act_x13-Mar-03 10:13 
GeneralRe: Tree Navigation Pin
Michael A. Barnhart13-Mar-03 11:12
Michael A. Barnhart13-Mar-03 11:12 
Is this what you want?
What processor are you using?
I had to change the xmlns to something newer to run this through MSXML 4.

I also had to correct the case of the match and select values to your xml file.

**************** XML FILE *****************
<object Class="CRange" Name="objName">
<object Class="CKeyboard" Name="objName"/>
<object Class="COven" Name="objName">
<object Class="CDigitalInput" Name="objName"/>
<object Class="CDigitalOutput" Name="objName"/>
</object>
<object Class="CSettings" Name="objName"/>
</object>

*************** XSL FILE ********************
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
<h2>AOM MODEL</h2>
<br>top</br>
<xsl:apply-templates select="object"/>
</body>
</html>
</xsl:template>

<xsl:template match="object">
<span style="color:#0000FF">
<br>
<xsl:value-of select="@Class"/>
</br>
</span>
<xsl:apply-templates select="object"/>
</xsl:template>

<xsl:template match="PROPERTY">
<br>
<span style="color:#ff0000">
<xsl:value-of select="."/>
</span>
</br>
</xsl:template>


</xsl:stylesheet>
************** out put ******************
AOM MODEL
top
CRange
CKeyboard
COven
CDigitalInput
CDigitalOutput
CSettings

<b><i>""</i></b>
GeneralDisplay multipal XML files using single XXLT Pin
swaps13-Mar-03 0:54
swaps13-Mar-03 0:54 
GeneralStoring data in "ref" element Pin
EnkelIk5-Mar-03 7:18
EnkelIk5-Mar-03 7:18 
GeneralCan't define array in xml Pin
EnkelIk3-Mar-03 2:18
EnkelIk3-Mar-03 2:18 
GeneralThe real schema Pin
EnkelIk3-Mar-03 2:20
EnkelIk3-Mar-03 2:20 
GeneralRe: The real schema Pin
Louis Riel2-Jun-04 4:49
Louis Riel2-Jun-04 4:49 
GeneralRe: The real schema Pin
EnkelIk8-Jun-04 23:34
EnkelIk8-Jun-04 23:34 
GeneralSOAP Stars Pin
Steve Murrell2-Mar-03 5:30
Steve Murrell2-Mar-03 5:30 
Generalxsl:import and xsl:include Pin
Philip Patrick28-Feb-03 21:11
professionalPhilip Patrick28-Feb-03 21:11 
GeneralRe: xsl:import and xsl:include Pin
Michael A. Barnhart1-Mar-03 1:34
Michael A. Barnhart1-Mar-03 1:34 
GeneralRe: xsl:import and xsl:include Pin
Philip Patrick1-Mar-03 1:46
professionalPhilip Patrick1-Mar-03 1:46 
GeneralRe: xsl:import and xsl:include Pin
Michael A. Barnhart1-Mar-03 1:51
Michael A. Barnhart1-Mar-03 1:51 
GeneralRe: xsl:import and xsl:include Pin
Philip Patrick1-Mar-03 2:00
professionalPhilip Patrick1-Mar-03 2:00 
QuestionHow to get AppInfo/Documentation from an XML Schema via XmlDocument (DOM) in C#? Pin
Mirco J. Nimmrichter27-Feb-03 6:02
Mirco J. Nimmrichter27-Feb-03 6:02 
GeneralSimple question to get attribute of IXMLDOMNode in using MSXML Pin
adapterJohn25-Feb-03 2:20
adapterJohn25-Feb-03 2:20 
GeneralRe: Simple question to get attribute of IXMLDOMNode in using MSXML Pin
Michael A. Barnhart25-Feb-03 5:07
Michael A. Barnhart25-Feb-03 5:07 
GeneralFailed to CreateInstance while using IXMLHttpRequestPtr Pin
adapterJohn25-Feb-03 2:09
adapterJohn25-Feb-03 2:09 
GeneralRe: Failed to CreateInstance while using IXMLHttpRequestPtr Pin
Michael A. Barnhart25-Feb-03 5:00
Michael A. Barnhart25-Feb-03 5:00 

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.