Click here to Skip to main content
15,911,646 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Reading XML file with VB.Net Pin
adaoja21-Aug-03 0:55
adaoja21-Aug-03 0:55 
GeneralUsing SAX to generate DOM documents Pin
Steve S19-Aug-03 1:44
Steve S19-Aug-03 1:44 
QuestionGeneric calc engine? Pin
Andy H18-Aug-03 10:23
Andy H18-Aug-03 10:23 
AnswerRe: Generic calc engine? Pin
palbano28-Aug-03 8:33
palbano28-Aug-03 8:33 
GeneralFormat XML for web page Pin
Davy Mitchell18-Aug-03 7:10
Davy Mitchell18-Aug-03 7:10 
GeneralRe: Format XML for web page Pin
J. Dunlap18-Aug-03 9:03
J. Dunlap18-Aug-03 9:03 
GeneralRe: Format XML for web page Pin
ZoogieZork18-Aug-03 9:50
ZoogieZork18-Aug-03 9:50 
GeneralGeneric XSL for table with column names Pin
Jo Fredrickson17-Aug-03 15:41
Jo Fredrickson17-Aug-03 15: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 3:08
Philip Fitzsimons18-Aug-03 3:08 
GeneralRe: Generic XSL for table with column names Pin
Jo Fredrickson18-Aug-03 15:16
Jo Fredrickson18-Aug-03 15:16 
GeneralProblem with createElement/createNode of IXMLDOMDocumentPtr Pin
Binayak7-Aug-03 15:32
Binayak7-Aug-03 15:32 
GeneralRe: Problem with createElement/createNode of IXMLDOMDocumentPtr Pin
Philip Fitzsimons12-Aug-03 3:20
Philip Fitzsimons12-Aug-03 3:20 
GeneralRe: Problem with createElement/createNode of IXMLDOMDocumentPtr Pin
adaoja21-Aug-03 10:18
adaoja21-Aug-03 10:18 
GeneralXML-serializer with ABSTRACT class Pin
MeisterBiber6-Aug-03 10:00
MeisterBiber6-Aug-03 10:00 
GeneralRe: XML-serializer with ABSTRACT class Pin
Heath Stewart11-Aug-03 3:55
protectorHeath Stewart11-Aug-03 3:55 
Generaldirectory changing Pin
misiek6-Aug-03 6:21
misiek6-Aug-03 6:21 
GeneralStripping null characters from XML elements Pin
CBoland5-Aug-03 12:14
CBoland5-Aug-03 12:14 
GeneralRe: Stripping null characters from XML elements Pin
CBoland7-Aug-03 3:32
CBoland7-Aug-03 3:32 
GeneralPagination of XSL report Pin
NikolajBaer5-Aug-03 5:31
NikolajBaer5-Aug-03 5:31 
GeneralRe: Pagination of XSL report Pin
Philip Fitzsimons7-Aug-03 3:06
Philip Fitzsimons7-Aug-03 3:06 
GeneralXML error Pin
si_695-Aug-03 1:09
si_695-Aug-03 1:09 
QuestionXML -> Dataset + ComboBox? Pin
MStanbrook3-Aug-03 12:10
MStanbrook3-Aug-03 12:10 
Question&quot;Good&quot; XML/XSL(T) books...? Pin
KoalaCowboy1-Aug-03 5:02
KoalaCowboy1-Aug-03 5:02 
AnswerRe: &quot;Good&quot; XML/XSL(T) books...? Pin
theJazzyBrain1-Aug-03 14:09
theJazzyBrain1-Aug-03 14:09 
GeneralRe: &quot;Good&quot; XML/XSL(T) books...? Pin
MStanbrook3-Aug-03 17:31
MStanbrook3-Aug-03 17: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.