ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <>
Subject Re: [PATCH] valueFile for ReplaceFilter
Date Mon, 23 Apr 2001 11:42:01 GMT
Peter Donald wrote:

> Just curious but why doesn't the following work for you if placed in your
> style files. $mymenu.file could be a defined XSLT paramater (can the ant
> style task pass in parameters??) or hardwired.
>  <tag-enclosing-menu>
>   <xsl:apply-templates select="document($mymenu.file)"/>
>  </tag-enclosing-menu>

The main reason is that the menu is a data file, not a stylesheet, it
gets processed by the stylesheet so that every page gets different
options on the menu.

And I'm not sure how would the above work in XSL. Can you enlighten me
on the document() function. Didn't find it in the XPath spec...

Ant can pass parameters to XSLT processor, that's fine.


View raw message