> From: Brent Eades [mailto:[EMAIL PROTECTED]] > > On 4 Apr 2002 at 21:43, Luca Morandini wrote: > > > <xsl:template match="bis"> > > <xsl:element name="biselement"> > > <xsl:copy-of select="."/> > > </xsl:element> > > </xsl:template> > > > > But this is plain XSLT matching, nothing to do with XPATH. > > > > BTW, I've noticed your HTML is NOT XML-compliant, which will cause > > problems to XSLT: mind !
HTML generator with the help of jTidy will fix this. Brent: Start with simple: <map:match pattern="yahoo"> <map:generate type="html" src="http://www.yahoo.com"/> <map:serialize type="xml"/> </map:match> Test it, and continue from this to next step: <map:match pattern="yahoo"> <map:generate type="html" src="http://www.yahoo.com"> <map:parameter name="xpath" value="/html"/> </map:generate> <map:serialize type="xml"/> </map:match> Test it, see the result, go further. Say, use xpath value="/html/body/table". Vadim > OK, I think I follow your drift. As for the HTML... yes, it's pretty > rough in that respect. Not my code, mind you :) > > Thanks, I'll try that route. > > ----------------------------- > Brent Eades, Almonte, Ontario > http://www.almonte.com > http://www.bankofcanada.ca --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>