Click here to Skip to main content
15,897,704 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: how xml embeds (saves) an image Pin
berndg26-Nov-02 3:14
berndg26-Nov-02 3:14 
GeneralRe: how xml embeds (saves) an image Pin
Asim N.26-Nov-02 13:49
Asim N.26-Nov-02 13:49 
GeneralRe: how xml embeds (saves) an image Pin
Michael A. Barnhart26-Nov-02 14:00
Michael A. Barnhart26-Nov-02 14:00 
GeneralCreating an attribute of a node Pin
Bash24-Nov-02 22:58
Bash24-Nov-02 22:58 
GeneralRe: Creating an attribute of a node Pin
Christian Graus26-Nov-02 19:53
protectorChristian Graus26-Nov-02 19:53 
GeneralAutomatic processing XML/XSLT on client or server side Pin
Kosta Cherry23-Nov-02 11:45
Kosta Cherry23-Nov-02 11:45 
GeneralRe: Automatic processing XML/XSLT on client or server side Pin
Michael A. Barnhart23-Nov-02 15:37
Michael A. Barnhart23-Nov-02 15:37 
GeneralAppling XSL to XML - select attribute of node Pin
Bash21-Nov-02 23:46
Bash21-Nov-02 23:46 
Hi Gurus!

I am a XML beginner. I am trying to create the xsl style sheet for the following XML document. I can't retrieve in XSL the value of attribute "Id" from the "Filter" node.

This XML and XSL must be viewed in the regular IE 5.0 without additional MSXML packs. Help me!

<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="2.xsl"?>
<TrafficReport>
<Filter Id="1">
<Name>TCP</Name>
<Sent>21122</Sent>
<Recv>4523487</Recv>
</Filter>
<Filter Id="2">
<Name>TCP 8080</Name>
<Sent>154953</Sent>
<Recv>7199212</Recv>
</Filter>
</TrafficReport>

2.xsl:

<?xml version="1.0"?>
<xsl:template xmlns:xsl="uri:xsl">
<HTML><BODY>
<table cellspacing="0" cellpadding="5" border="1">
<xsl:for-each select="TrafficReport/Filter">
<tr>
<td STYLE="font-family:Arial; font-size:12">
------Here is my problem <xsl:attribute name="Id"><xsl:value-of select="@Id"/></xsl:attribute>
</td>
<td STYLE="font-family:Arial; font-size:12">
<xsl:value-of select="Name"/>
</td>
<td STYLE="font-family:Arial; font-size:12">
<xsl:value-of select="Sent"/>
</td>
<td STYLE="font-family:Arial; font-size:12">
<xsl:value-of select="Recv"/>
</td>
</tr>
</xsl:for-each>

</table>
</BODY>
</HTML>
</xsl:template>


Yours sincerely,
Alex Bash
GeneralRe: Appling XSL to XML - select attribute of node Pin
Michael A. Barnhart22-Nov-02 1:22
Michael A. Barnhart22-Nov-02 1:22 
QuestionHow to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry20-Nov-02 16:24
Kosta Cherry20-Nov-02 16:24 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus20-Nov-02 16:33
protectorChristian Graus20-Nov-02 16:33 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry20-Nov-02 16:47
Kosta Cherry20-Nov-02 16:47 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus20-Nov-02 17:07
protectorChristian Graus20-Nov-02 17:07 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Michael A. Barnhart21-Nov-02 0:16
Michael A. Barnhart21-Nov-02 0:16 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Michael A. Barnhart21-Nov-02 0:09
Michael A. Barnhart21-Nov-02 0:09 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Philip Fitzsimons21-Nov-02 0:46
Philip Fitzsimons21-Nov-02 0:46 
AnswerRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry21-Nov-02 10:43
Kosta Cherry21-Nov-02 10:43 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus21-Nov-02 10:49
protectorChristian Graus21-Nov-02 10:49 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Kosta Cherry21-Nov-02 14:14
Kosta Cherry21-Nov-02 14:14 
GeneralRe: How to apply XSLT to XML on the server in JSP or ASP without DOM? Pin
Christian Graus21-Nov-02 15:09
protectorChristian Graus21-Nov-02 15:09 
GeneralXSL Pin
James Spibey15-Nov-02 2:34
James Spibey15-Nov-02 2:34 
GeneralRe: XSL Pin
Paul Watson15-Nov-02 2:43
sitebuilderPaul Watson15-Nov-02 2:43 
GeneralRe: XSL Pin
James Spibey15-Nov-02 3:28
James Spibey15-Nov-02 3:28 
GeneralRe: XSL Pin
Philip Fitzsimons15-Nov-02 11:03
Philip Fitzsimons15-Nov-02 11:03 
GeneralRe: XSL Pin
Paul Watson16-Nov-02 0:45
sitebuilderPaul Watson16-Nov-02 0: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.