Re: [Hypercontent-users] xsl question
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2007-02-01 13:34:01
|
Hi Carl, In that case, I'd suggest trying <xsl:when test=3D"(starts-with($sourceItem/@directory,'/undergraduate/=20= courses')and($sourceItem/@pattern=3D'/**/*.xml'))"> Cheers, Alex On Jan 31, 2007, at 10:49 AM, Carl P Barrow wrote: > Hi Alex, > > > > Thanks for the info. I am assuming that because I=92m defining /**/=20 > *.xml in my project definition in my project definition that=92s why =20= > it=92s not working. I am defining /undergraduate/courses/*/index.xml =20= > but if I define /undergraduate/courses/*.xml it stops my =20 > sitemap.xml file form working. But, defining /undergraduate/=20 > courses/*/*.xml doesn=92t. I=92ve attached the project definition for = =20 > you to take a look at. > > > > Cheers > > Carl > > > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > http://www.hull.ac.uk/cms > > ************************************* > > From: hyp...@li... =20 > [mailto:hyp...@li...] On Behalf =20= > Of Alex Vigdor > Sent: 31 January 2007 14:26 > To: Hypercontent-users List > Subject: Re: [Hypercontent-users] xsl question > > > > Hi Carl, > > The pattern must exactly match the pattern of the =20 > doctype in project-definition.xml - the XSLT string comparison has =20 > no knowledge of how to resolve wildcard patterns, unfortunately. I =20= > would think something like your third example should work, assuming =20= > the doctype pattern is "/*/*/*.xml". Perhaps in your project =20 > definition it is just "/*/*/*" ? If you still have problems, send =20 > a copy of your project definition and I'll have a look. > > > > Cheers, > > Alex > > > > On Jan 31, 2007, at 6:33 AM, Carl Barrow wrote: > > > > > Hi Alex, > > > > Just a quick xsl question if that=92s okay. I want to include =20 > something an all pages in a particular directory. > > It=92s easy enough to include it on specific page using: > > <xsl:when test=3D"($sourceItem/@location=3D'/undergraduate/courses/=20 > index.xml')"> > > I thought I might be able use: > > <xsl:when test=3D"($sourceItem/@pattern=3D'/undergraduate/courses/=20 > *.xml')"> but that didn=92t work. > > I also tried: > > <xsl:when test=3D"(starts-with($sourceItem/@directory,'/undergraduate/=20= > courses')and($sourceItem/@pattern=3D'/*/*/*.xml'))"> > > But again that didn=92t work. > > > > Do you have any pointers? > > > > Cheers > > Carl > > > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > http://www.hull.ac.uk/cms > > ************************************* > > > > **********************************************************************=20= > ******************* > > To view the terms under which this email is distributed, please go =20 > to http://www.hull.ac.uk/legal/email_disclaimer.html > > **********************************************************************=20= > *******************---------------------------------------------------=20= > ---------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > > Hypercontent-users mailing list > > Hyp...@li... > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > <project-definition.xml> > **********************************************************************=20= > ******************* > To view the terms under which this email is distributed, please go =20 > to http://www.hull.ac.uk/legal/email_disclaimer.html > **********************************************************************=20= > ******************* |