cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Toper <nto...@jouve.fr>
Subject Re: content aggregation + links to used files
Date Wed, 07 Jan 2004 13:39:30 GMT
Please send un an example of the input
Le Mercredi 07 Janvier 2004 14:16, Nele Vogel a écrit :
> > But you do not put <dir:file/> elements out in cincludeFiles.xsl, do
> > you?
>
> No. cincludeFiles.xsl puts out the following:
>
> <news xmlns:dir="http://apache.org/cocoon/directory/2.0"
>       xmlns:cinclude="http://apache.org/cocoon/include/1.0"
>       xmlns="http://www.sevencs.com">
>
>   <file path="news/news1.xml">
>     <article>
>       [... other elements ...]
>     </article>
>   </file>
>   [... other files ...]
> </news>
>
> > When you send the stylesheets the first time to the list, you put
> > out <file/> elements in the default namespace "http://sevencs.com". In
> > news.xsl you must match on prefix:file, where the prefix is bound to the
> > default namespace od cincludeFiles.xsl, i.e. "http://sevencs.com".
>
> This is the header of news.xsl and the most important templates.
> Now, from what I understand the prefix *sevencs* is bound to the default
> namespace "http://www.sevencs.com". Is that correct?
>
> <xsl:stylesheet version="1.0"
>      xmlns="http://www.sevencs.com"
>      xmlns:sevencs="http://www.sevencs.com"
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>   <xsl:template match="/">
>     <xsl:apply-templates/>
>   </xsl:template>
>
>   <xsl:template match="sevencs:news">
>     <xsl:apply-templates/>
>   </xsl:template>
>
>   <xsl:template match="sevencs:file">
>     <xsl:text>following file was added:</xsl:text>
>     <xsl:value-of select="./@path"/>
>     <xsl:apply-templates/>
>   </xsl:template>
>
>   [... other templates ...]
>
> </xsl:stylesheet>
>
> But it still doesn't match.
>
> Thank you for your help.
> Regards,
> Nele.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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


Mime
View raw message