Hi Carl,
I think you should be able to accomplish that with a combination of
@directory and @pattern. The exact XPATH would depend on how your
pattern is defined in the project definition, but assuming it is
"/*/*/index.xml":
<xsl:when test="($sourceItem/@pattern='/*/*/index.xml') and
(starts-with($sourceItem/@directory,'/qualityhandbook/'))">
. . .
Cheers,
Alex
On Nov 2, 2005, at 11:45 AM, Carl Barrow wrote:
> Hi Alex
>
> The following xsl checks a path and puts in a list of files for that
> page :
> <xsl:when test="$sourceItem/@location =
> '/qualityhandbook/section_a/index.xml'">
> <xsl:call-template name="body-navigation-quality"/>
> </xsl:when>
>
> It works fine. Do you know of a way to say any index file at that
> level under qualtiyhandbook should use that body-navigation-template?
> I tried
> <xsl:when test="$sourceItem/@location =
> '/qualityhandbook/*/index.xml'">
> <xsl:call-template name="body-navigation-quality"/>
> </xsl:when>
>
> But that did't work.
>
> Cheers Carl
>
> --
> ************************************
>
> Carl Barrow
> Systems Integrator
> e-Services
> The University of Hull
> Cottingham Road
> Hull
> HU6 7RX
> Ext. 6838
> ************************************
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Hypercontent-users mailing list
> Hyp...@li...
> https://lists.sourceforge.net/lists/listinfo/hypercontent-users
|