The file name is news*.xml The namespace is the Directory Generator's one so not at all sevencs!!!!
Besides your match wont' work b/c it looks for a specific tags. I don't know well enough to correct it but I can tell you at least that NS won't work b/c it is simply not the good one: you're putting an xml file generated with the directory generator if I remember right so the NS cannot be of sevencs, look at the Directory Generator to find out or even better just <map:serialize type="xml" after the generator to see the NS (you'll need to look at the source code from the browser; not the XML tree which are usually not copied to the main window) Le Mercredi 07 Janvier 2004 14:52, Nele Vogel a �crit : > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
