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

XML / XSL

 
AnswerRe: Image in XML attribute Pin
Stuart Dootson15-Jun-09 22:48
professionalStuart Dootson15-Jun-09 22:48 
QuestionSpecifying condition with count function Pin
Fadi Yoosuf15-Jun-09 0:28
Fadi Yoosuf15-Jun-09 0:28 
AnswerRe: Specifying condition with count function [modified] Pin
Stuart Dootson15-Jun-09 4:05
professionalStuart Dootson15-Jun-09 4:05 
GeneralRe: Specifying condition with count function Pin
Fadi Yoosuf16-Jun-09 1:03
Fadi Yoosuf16-Jun-09 1:03 
QuestionXML DOM insertBefore() Method Pin
p_196011-Jun-09 23:58
p_196011-Jun-09 23:58 
AnswerRe: XML DOM insertBefore() Method Pin
George L. Jackson12-Jun-09 2:23
George L. Jackson12-Jun-09 2:23 
QuestionHow to modify XML file's Element and Attribute copying from another file using C# Pin
Nikkiee11-Jun-09 13:45
Nikkiee11-Jun-09 13:45 
QuestionXML/XSL Html table trouble Pin
Brian_Mitchell10-Jun-09 22:50
Brian_Mitchell10-Jun-09 22:50 
Hi Guys, wondering if you can help me again,

I need to write a stylesheet for a xml document, i need to convert it to a html table with a header, i can get the header working and get the table created but i can't get the xml put within the table.

the code is below do you any ideas, i thought this was quite a simple task but its turns out harder than i thought.

xml sample - there is more to the code but this is a example, with the report is the title and other info but that is not relevent as the arguments fields is what i need to put into a table
<report-item-definition>
<arguments>
    <argument>
      <name>xVar</name>
      <type>Column</type>
      <default>@IPRED</default>
      <display-name>X Axis Variable</display-name>
      <description>X Axis Variable</description>
      <visible>FALSE</visible>
      <filter-type>@ALL</filter-type>
    </argument>
    <argument>
</report-item-definition>


The table show look like the following

Name - Type - Default - Display Name - Description - Visible - Filter Type

At the moment my style sheet looks like this - but it does not seem to be working

<?xml version="1.0" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >


<xsl:template match ="/">
	<html>
		<head>
			<title>XML Stylesheet</title>
		</head>

		<body>
		
			<h1 align="center"><b><xsl:value-of 

select="report-item-definition/item-title" /></b></h1>
		
			<xsl:apply-templates />
			
		</body>
	</html>

</xsl:template>


<xsl:template match="report-item-definition/arguments">

	<table width="700" border="1" align="center" style="font-family:verdana 	

font-size:10pt">

		<tr bgcolor = "#cccccc">
			<td width="130" align="center"><b>Name</b></td> 
			<td align="center"><b>Type</b></td>
			<td align="center"><b>Default</b></td>
			<td align="center"><b>Display Name</b></td>
			<td align="center"><b>Description</b></td>
			<td align="center"><b>Visible</b></td>
			<td align="center"><b>Filter Type</b></td>
		</tr>




<xsl:for-each select="arguments/argument">
<tr>
<td><xsl:value-of select="name" /></td>
<!--<td><xsl:value-of select="type" /></td>
<td><xsl:value-of select="default" /></td>
<td><xsl:value-of select="display-name" /></td>
<td><xsl:value-of select="descriptions" /></td>
<td><xsl:value-of select="visible" /></td>
<td><xsl:value-of select="filter-type" /></td>-->
</tr>

</xsl:for-each>
	</table>
</xsl:template>

</xsl:stylesheet>

AnswerRe: XML/XSL Html table trouble Pin
George L. Jackson11-Jun-09 14:02
George L. Jackson11-Jun-09 14:02 
AnswerRe: XML/XSL Html table trouble Pin
Stuart Dootson11-Jun-09 22:58
professionalStuart Dootson11-Jun-09 22:58 
QuestionSerialization Invalid cast exception Pin
miniThomas10-Jun-09 20:39
miniThomas10-Jun-09 20:39 
AnswerCross Posted Pin
led mike11-Jun-09 4:39
led mike11-Jun-09 4:39 
QuestionPreserving white space in attribute values. (using MSXML) Pin
Maximilien9-Jun-09 7:25
Maximilien9-Jun-09 7:25 
AnswerRe: Preserving white space in attribute values. (using MSXML) Pin
Stuart Dootson9-Jun-09 13:44
professionalStuart Dootson9-Jun-09 13:44 
GeneralRe: Preserving white space in attribute values. (using MSXML) [modified] Pin
Maximilien10-Jun-09 3:26
Maximilien10-Jun-09 3:26 
QuestionXML / XSL Substring Pin
Brian_Mitchell8-Jun-09 6:16
Brian_Mitchell8-Jun-09 6:16 
AnswerRe: XML / XSL Substring Pin
Stuart Dootson8-Jun-09 23:10
professionalStuart Dootson8-Jun-09 23:10 
QuestionCSS... Pin
Jamal Abdul Nasir8-Jun-09 3:11
Jamal Abdul Nasir8-Jun-09 3:11 
AnswerRe: CSS... Pin
Christian Graus8-Jun-09 18:08
protectorChristian Graus8-Jun-09 18:08 
GeneralRe: CSS... Pin
Stuart Dootson8-Jun-09 22:27
professionalStuart Dootson8-Jun-09 22:27 
GeneralRe: CSS... Pin
Christian Graus9-Jun-09 11:17
protectorChristian Graus9-Jun-09 11:17 
GeneralRe: CSS... Pin
Stuart Dootson9-Jun-09 13:02
professionalStuart Dootson9-Jun-09 13:02 
AnswerRe: CSS... Pin
Stuart Dootson8-Jun-09 22:25
professionalStuart Dootson8-Jun-09 22:25 
GeneralRe: CSS... Pin
Jamal Abdul Nasir2-Feb-10 7:58
Jamal Abdul Nasir2-Feb-10 7:58 
QuestionAnother boring XML question. URGENT Pin
Etienne_1237-Jun-09 6:15
Etienne_1237-Jun-09 6:15 

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.