Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSL for removing words less than 4 letters in a sitemap >Thread Next - Re: XSL for removing words less than 4 letters in a sitemap Re: XSL for removing words less than 4 letters in a sitemapTo: NULL Date: 4/3/2008 7:10:00 AM On 3 abr, 13:06, Martin Honnen <mahotr...@yahoo.de> wrote: > Olagato wrote: > >> Do you want to use XSLT 2.0 or 1.0? > > I'm using XSLT 1.0 > > >> What about words like 'localhost' or 'index', how do you decide that those are not taken? > > It's not a problem now. Maybe a sentence like next: > > translate( translate( substring-after( sm:loc, 'http://localhost/ > > index.php/index.php/') ,'-', ',') ,'/',',') > > > I'm trying your XSL from PHP without success: > > PHP only supports XSLT 1.0 so my posted stylesheet using XSLT and XPath > 2.0 functionality does not work with PHP's XSLT processor. > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/ Your posted version in 1.0 functionality seems to be quite difficult to implement because of lack of advanced functions (at least for a xsl newbie like me) So my only alternative would be to use a XSLT processor. I'll try Xalan on server: http://xalan.apache.org/ Any other idea using XSLT 1.0 will be appreciated. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
