Subject: Re: [xsl] Apply transform to document collection and summarize results in single output From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 29 Jan 2012 16:37:39 -0500 |
Hello, I currently have a template that successfully processes a single xml file.
XSLT version 2 Using Saxon-SA 9.1.0.7,
I would like to iterate through a folder of XML source documents and create a single output file
My template that successfully processes my source file is
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="Account">
<html> <body> <h2>LogEntries</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>Column1</th> <th>Column2</th> </tr>
<tr> <td> <xsl:value-of select="Firstname"/> </td> <td> <xsl:value-of select="Lastname"/> </td> </tr>
</table> </body> </html> </xsl:template>
</xsl:stylesheet>
The output I want is basically a single html file that includes a table with 2 columns
Column1 Column2 Firstname1 Lastname1 (info from file1) Firstname2 Lastname2 (info from file2) Firstname3 Lastname3 (info from file3)
etc...
Not clear this is possible.
I could code it in Java / C# to iterate the docs but kinda feels like it should be possible with just XSLT Any insight or reading would be appreciated.
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Apply transform to document c, Sean Tiley | Thread | Re: [xsl] Apply transform to docume, Sean Tiley |
[xsl] Apply transform to document c, Sean Tiley | Date | Re: [xsl] Apply transform to docume, Sean Tiley |
Month |