On Tuesday 24 December 2002 16:46, you wrote:
> Is it possible to pass more than one xpath parameter inside one
> map:generate. I'm trying to play with yahoo sample in cocoon but I want to
> extract 2 nodes, let's say one <head>/<title> and one td for the first
> table. But it seems that the pattern recognizes only the last parameter. Is
> it possible to pass more than one parameter like below:
>
> <map:match pattern="yahoo">
> <map:generate src="http://www.yahoo.com" type="html">
> <map:parameter name="xpath" value="/html/head/title"/>
> <map:parameter name="xpath"
> value="/html/body/center/table[1]/tr[1]/td[1]"/>
There can only be one parameter with a certain name. This should
be pretty obvious. (Cocoon devs: this should raise an error).
You can try
<map:parameter name="xpath"
value="/html/head/title|/html/body/center/table[1]/tr[1]/td[1]"/>
which is a valid XPath expression, I havn't tried it myself though.
J.Pietschmann
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>