Click here to Skip to main content
15,797,672 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Reading XML file with VB.Net Pin
adaoja21-Aug-03 1:55
adaoja21-Aug-03 1:55 
GeneralUsing SAX to generate DOM documents Pin
Steve S19-Aug-03 2:44
Steve S19-Aug-03 2:44 
QuestionGeneric calc engine? Pin
Andy H18-Aug-03 11:23
Andy H18-Aug-03 11:23 
AnswerRe: Generic calc engine? Pin
palbano28-Aug-03 9:33
palbano28-Aug-03 9:33 
GeneralFormat XML for web page Pin
Davy Mitchell18-Aug-03 8:10
Davy Mitchell18-Aug-03 8:10 
GeneralRe: Format XML for web page Pin
J. Dunlap18-Aug-03 10:03
J. Dunlap18-Aug-03 10:03 
GeneralRe: Format XML for web page Pin
ZoogieZork18-Aug-03 10:50
ZoogieZork18-Aug-03 10:50 
GeneralGeneric XSL for table with column names Pin
Jo Fredrickson17-Aug-03 16:41
Jo Fredrickson17-Aug-03 16:41 
Hi, I am trying to create a generic xsl file to display query results. The column names depend upon the query, so I dont want to hardcode them. What I have is close to what I need, but I get one row of column headings for each row of data. (Just one would do!)

I can see that the for-each command in the table header is causing the problem, but I'm not sure how to select just one row. Any advise would be really helpfull. Thanks. Smile | :)

My data looks like this:
<?xml-stylesheet type="text/xsl" href="generic.xsl"?>
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata">

<ResultRow>
<Code>AVL1A</Code>
<Name>RED</Name>
<Quantity>9437.914</Quantity>
</ResultRow>
<ResultRow>
<Code>XYZ</Code>
<Name>BLUE</Name>
<Quantity>9437.914</Quantity>
</ResultRow></code>

And my xsl looks like this (portion):
<code><table>
<thead>
<xsl:for-each select="//ResultRow">
<tr align="center">
<xsl:for-each match=".//">
<td><strong><xsl:node-name /></strong></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</thead>
<tbody>
<xsl:for-each select="//ResultRow">
<tr><xsl:for-each match=".//">
<td><xsl:value-of /></td>
</xsl:for-each></tr>
</xsl:for-each>
</tbody>
</table></code>

Joanne
GeneralRe: Generic XSL for table with column names Pin
Philip Fitzsimons18-Aug-03 4:08
Philip Fitzsimons18-Aug-03 4:08 
GeneralRe: Generic XSL for table with column names Pin
Jo Fredrickson18-Aug-03 16:16
Jo Fredrickson18-Aug-03 16:16 
GeneralProblem with createElement/createNode of IXMLDOMDocumentPtr Pin
Binayak7-Aug-03 16:32
Binayak7-Aug-03 16:32 
GeneralRe: Problem with createElement/createNode of IXMLDOMDocumentPtr Pin
Philip Fitzsimons12-Aug-03 4:20
Philip Fitzsimons12-Aug-03 4:20 
GeneralRe: Problem with createElement/createNode of IXMLDOMDocumentPtr Pin
adaoja21-Aug-03 11:18
adaoja21-Aug-03 11:18 
GeneralXML-serializer with ABSTRACT class Pin
MeisterBiber6-Aug-03 11:00
MeisterBiber6-Aug-03 11:00 
GeneralRe: XML-serializer with ABSTRACT class Pin
Heath Stewart11-Aug-03 4:55
protectorHeath Stewart11-Aug-03 4:55 
Generaldirectory changing Pin
misiek6-Aug-03 7:21
misiek6-Aug-03 7:21 
GeneralStripping null characters from XML elements Pin
CBoland5-Aug-03 13:14
CBoland5-Aug-03 13:14 
GeneralRe: Stripping null characters from XML elements Pin
CBoland7-Aug-03 4:32
CBoland7-Aug-03 4:32 
GeneralPagination of XSL report Pin
NikolajBaer5-Aug-03 6:31
NikolajBaer5-Aug-03 6:31 
GeneralRe: Pagination of XSL report Pin
Philip Fitzsimons7-Aug-03 4:06
Philip Fitzsimons7-Aug-03 4:06 
GeneralXML error Pin
si_695-Aug-03 2:09
si_695-Aug-03 2:09 
QuestionXML -> Dataset + ComboBox? Pin
MStanbrook3-Aug-03 13:10
MStanbrook3-Aug-03 13:10 
Question&quot;Good&quot; XML/XSL(T) books...? Pin
KoalaCowboy1-Aug-03 6:02
KoalaCowboy1-Aug-03 6:02 
AnswerRe: &quot;Good&quot; XML/XSL(T) books...? Pin
theJazzyBrain1-Aug-03 15:09
theJazzyBrain1-Aug-03 15:09 
GeneralRe: &quot;Good&quot; XML/XSL(T) books...? Pin
MStanbrook3-Aug-03 18:31
MStanbrook3-Aug-03 18:31 

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.