Re: [Hypercontent-users] xsl question
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2007-01-31 14:26:55
|
Hi Carl, The pattern must exactly match the pattern of the doctype in = project-=20 definition.xml - the XSLT string comparison has no knowledge of how =20 to resolve wildcard patterns, unfortunately. I would think something =20= like your third example should work, assuming the doctype pattern is =20 "/*/*/*.xml". Perhaps in your project definition it is just "/*/*/=20 *" ? If you still have problems, send a copy of your project =20 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 |