Hi Carl,
Welcome back, hope your new son is letting you and your wife get some
sleep! Things at Columbia are fine, HC2 has been stabilizing nicely in
production, and I do plan a release of some kind this week with all the
latest improvements (including better support for batch processing of
pictures).
You should try the XSL function "starts-with" to check if the path
starts with the relevant base directory, e.g.
test="starts-with(@location,'/aboutus/')"
Cheers,
Alex
On Sep 13, 2005, at 11:33 AM, Carl Barrow wrote:
> Hi Alex
>
> Sorry I've not been on the list for a while after the birth of our
> little boy I've been very busy. I hope all is going well at Columbia.
> HyperContent is running very well here at Hull. (Still 1.4)
> I have a quick question that you will probably be able to answer
> quickly for me. I need to check where in the site structure a page
> is and depending on it's location but in a different menu. ( I'm not
> auto generating them for this site) . So I have seven top level
> directories each of which will have a different menu which needs to be
> reflected on all directories and files from that level down. I've
> tried:
>
>
> <xsl:when test="$sourceItem/@location = '/aboutus/*'">
> <xsl:call-template name = "statmenu"/>
> </xsl:when>
>
> But that doesn't work.
>
> I can check for a specific file :
> <xsl:when test="$sourceItem/@location = '/aboutus/index.html'">
> and that does work.
>
> do you have any idea how I might do it? I don't really want to use
> seven different templates!
>
> 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 the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> Hypercontent-users mailing list
> Hyp...@li...
> https://lists.sourceforge.net/lists/listinfo/hypercontent-users
|