OK am running this on ubuntu linux and am consistently getting

Transformation failed: net.sf.saxon.trans.XPathException: Failed to load org.ccil.cowan.tagsoup.Parser

Both Tagsoup and Saxon are located in my home directory. The last thing I tried in my shell script

export CLASSPATH=~
 java -jar ~/saxon9he.jar -x:org.ccil.cowan.tagsoup.Parser -s:- -o:allcritics.xhtml -xsl:critics.xsl

On Tue, Dec 10, 2013 at 3:44 PM, Ihe Onwuka <ihe.onwuka@gmail.com> wrote:
Or i suppose I could overcome that by setting xpath-default-namespace to the XHTML namespace

On Tue, Dec 10, 2013 at 3:33 PM, Ihe Onwuka <ihe.onwuka@gmail.com> wrote:
Genius :).

But doesn't that parse with vanilla options. I would like to have the --nons switch set so that stuff doesn't get put in the XHTML namespace. 

Anyone know how to do that (read the docs and reading them again as I post).

On Tue, Dec 10, 2013 at 2:32 PM, Emmanuel Bégué <eb@medusis.fr> wrote:
Doesn't the document() function use the same parser as provided by the
-x command line option? That's what the Saxon documentation says:

"-x classname Use specified SAX parser for source file and any files
loaded using the document() function."


On Tue, Dec 10, 2013 at 1:59 PM, Ihe Onwuka <ihe.onwuka@gmail.com> wrote:
>> I want to follow a link in the html so was hoping to do
>> <xsl:apply-templates select="saxon:parse-html(document(theurl))"/>
>> never mind.