cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.D. Williams" <jdwilli...@austin.rr.com>
Subject RE: XPathDirectory generator styling help
Date Fri, 10 Nov 2006 19:46:07 GMT
Hi Andrew,

I will give this a try and report back. I have a couple other things
before I get back to this particular project.

Joe

> 
> How about
>             <xsl:attribute name="href">
>                 <xsl:value-of select="substring-before(@name, '.xml')"/>
>             </xsl:attribute>
> ?  Or, if you think the characters ".xml" may appear more than once in the 
> filename (substring-before only looks up to the first occurrence) then maybe
>             <xsl:attribute name="href">
>                 <xsl:value-of select="substring(@name, 1, 
> string-length(@name) - 4)"/>
>             </xsl:attribute>
> would be better?  That assumes you don't also have e.g. any .js files in the 
> directory, though.
> 
> 
> Andrew.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message