I have a sitemap entry that reads
<map:match pattern="article">
<map:generate src="xquery/exist-article.xq" type="xquery"/>
<map:transform type="xinclude"/>
<map:transform src="stylesheets/db2html.xsl"/>
<map:serialize type="html"/>
</map:match>
and I call it like http://myhost/cocoon/article?format=summary&docid=12345.
I tried to do another sitemap entry like
<map:match pattern="summary">
<map:generate src="xquery/exist-article.xq" type="xquery">
<map:parameter name="format" value="summary"/>
</map:generate>
<map:transform type="xinclude"/>
<map:transform src="stylesheets/db2html.xsl"/>
<map:serialize type="html"/>
</map:match>
and I call it like http://myhost/cocoon/article?docid=12345. HOWEVER, the
variable summary does not get set.
I have passed parameter like this to XSLTs without issue. However, can I
pass a parameter like this to the xquery?
--
View this message in context:
http://www.nabble.com/Cocoon-sitemap-pattern-match-parameter-passing-tp23459093p23459093.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]