xsl-list
[Top] [All Lists]

Re: [xsl] fault tolerant saxon:parse()

2008-11-17 09:42:34
2008/11/17 David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:

Do I parse the entire XML using tagsoup?

no you need to set up tagsoup as the "xml" parser and have an url resolver
that knows about the data: URI scheme (which is just java stuff that you
know lots more about than me)

then

<xsl:template match="title">
<xsl:copy-od select="doc(concat('data:,',.))"/>
</xsl:template>

Out of interest, why is it "data:,"

I noticed that for your namespace in htmlparse.xsl - what's the
significance of the comma?

thanks
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--