xml sel -N x='http://www.w3.org/1999/xhtml' -T -t \
-m '//x:ul/x:li' -o 'normalize-space(.)' -nxml sel -C -N x='http://www.w3.org/1999/xhtml' -T -t \
-m '//x:ul/x:li' -o 'normalize-space(.)' -n
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
xmlns:math="http://exslt.org/math"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:func="http://exslt.org/functions"
xmlns:set="http://exslt.org/sets"
xmlns:str="http://exslt.org/strings"
xmlns:dyn="http://exslt.org/dynamic"
xmlns:saxon="http://icl.com/saxon"
xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
xmlns:xt="http://www.jclark.com/xt"
xmlns:libxslt="http://xmlsoft.org/XSLT/namespace"
xmlns:test="http://xmlsoft.org/XSLT/"
xmlns:x="http://www.w3.org/1999/xhtml"
extension-element-prefixes="exslt math date func set str dyn saxon xalanredirect xt libxslt test"
exclude-result-prefixes="math str">
<xsl:output omit-xml-declaration="yes" indent="no" method="text"/>
<xsl:param name="inputFile">-</xsl:param>
<xsl:template match="/">
<xsl:call-template name="t1"/>
</xsl:template>
<xsl:template name="t1">
<xsl:for-each select="//x:ul/x:li">
<xsl:value-of select="'normalize-space(.)'"/>
<xsl:value-of select="' '"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>wget -q -O - http://melugnorth.ning.com/ \
| tidy --show-warnings no --quiet yes --numeric-entities yes \
| xml sel -N x='http://www.w3.org/1999/xhtml' -T -t \
-m "//x:div[starts-with(@class, 'xg_module_body activityitem')]" \
-v 'normalize-space(.)' -n
Seth W. Klein started a discussion called Web Log Posts Nov 20
Seth W. Klein replied to the discussion fall/winter/spring meetings Nov 20
Seth W. Klein replied to the discussion Linux Version Nov 16
Ron Lawson left a comment for Seth W. Klein Nov 16
Ron Lawson replied to the discussion Linux Version Nov 16
Seth W. Klein left a comment for Ron Lawson Nov 16
Seth W. Klein replied to the discussion Linux Version Nov 16
Tags:
© 2009 Created by Seth W. Klein on Ning. Create a Ning Network!
You need to be a member of MELUG North to add comments!
Join this Ning Network