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."

Cheers,
EB



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.