> Please send un an example of the input This is the file news1.xml which I use as input for the directory generator.
<?xml version="1.0" encoding="UTF-8"?> <article xmlns="http://www.sevencs.com"> <meta> <history> <created author="abc" date="2004-01-07"/> </history> <subjects> <subject>dummy</subject> </subjects> </meta> <title>dummy</title> <headline>dummy</headline> <text> <paragraph>dummy</paragraph> </text> </article> Thank you for your help! Regards, Nele > 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]