[lxml-dev] Trouble parsing large XML document with ElementTree
Sam Kuper
sam.kuper at uclmail.net
Thu May 22 02:20:59 CEST 2008
Gosh, this is turning into a really fragmented post; apologies. I meant to
add to the first post that once parsed, my intention was to run a fairly
simple XSL transform on the document, to extract a copy of each of the URLs
it contains. Probably something like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>ODP URLs</h2>
<xsl:for-each select="Topic/link">
<p><xsl:value-of select="@r:resource"/></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Thanks for your patience; I'm still relatively new at this stuff,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080522/195906c0/attachment.htm
More information about the lxml-dev
mailing list