[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 10,000 document()'s
I'm assuming you'd rather use XSLT so "just use perl" isn't so useful
an answer.
On Tuesday, April 8, 2003, at 12:05 PM, Peter Binkley wrote: but I gather from a posting by Michael Kay Since document() trees are source trees it would seem as though the easy answer is that they must remain in memory. However I wonder what would happen if you only call the document() inside of a variable? Perhaps when the variable passes out of scope the document() source tree will be dumped. Maybe Can anyone suggest a strategy? The process doesn't have to be fast, it just Using XSLT? You might try another parser just to see what happens. But given the limitations of the language, it may not be possible. It all depends on whether or not there is a /correct/ way of loading a document() source tree only inside a certain scope, and if there is, asking one of the parser authors to implement that. Otherwise you could write a simple shell in another language that loops over the file and calls the XSLT with a parameter on the command-line that contains the name of a single file. If you're on unix though you really should look at man wc That will give you the counts you need ... again these could be passed in as parameters on the command line and picked up in the XSLT to simply add them into the output tree without needing to count the words in XSLT. simon XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|