[Home] [By Thread] [By Date] [Recent Entries]
At 2012-01-29 16:28 -0500, Sean Tiley wrote:
Hello, I currently have a template that successfully processes a single xml file. The XSLT 2 concept you are looking for is "collections". There are no standardized URI strings to represent a collection, but Saxon's URI convention is straightforward. You don't show us your data format, but your example could be modified along the lines of: My template that successfully processes my source file is You now want to do the logic at the start of processing, so match="/". At this point you now want to walk all XML files and, I assume, process the document element named "Account" in each one as a row: <xsl:for-each select="collection('./?select=*.xml')/Account"> </xsl:for-each>
It certainly is. 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. I hope the above helps. Check the Saxon documentation for all of the features of the URI for collections. . . . . . . . . . . Ken -- 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
|

Cart



