• 4
  • 13
  • 5
  • 1
  • 2
Der MEVA - Blog
Albrecht Weinert


a-weinert.de,  meva-lab.de
|< < > >|


blog... /character-range-filter-with-xslt-1-0/   [de]
Albrecht Weinert

A first character range filter with XSLT 1.0

This is a tip about Implementing a first character range filter with pure XSLT 1.0.

Though being a bit out of the main hype, XML data files and transforming style sheets are still attractive to separate data and rendering. So this might be helpful for regular xml / xls users / writers.

The problem

The transformers and and their description, existing in version XSLT 2.0, are quite power­ful, as soon as being accustomed to xls’ scatterbrained syntax. XSLT 1.0 is, of course, in no way better and much less expressive and powerful.

  • Still using XSLT 1.0 for good reasons

But there are cases, where one has to stick to XSLT 1.0 without any extensions. This would be mainly due to some server’s / framework’s / PHP installation’s and client’s limitations. On those one often has little to no influence. Using XSLT 2.0 or any extensions not covered by the standard and then hitting one of the above said limited environments in deployment / at customer sites is a way to to get into deep doo-doo.

In other words it may sometimes still be clever to stick to pure XSLT 1.0 against all advices and (what holds you off 2.0?) mockery.

  • XSLT 1.0′s abashing facilities for string / character operations

One worst limitations of XSLT 1.0 (and hence one of the highest prices to pay) is the almost total absence of decent string and character functions respectively operators. At one hand it is possible to sort using a string attribute (or value) as key.

Read all (a-weinert.de/pub/XSLT1.0RangeFilter.pdf).

Feed für Kommentare zum Beitrag

Your Comment

Please log in to write a comment. Use the same link to register as a new welcome user.

Copyright   ©   2013   Albrecht Weinert,       E-Mail (webmaster)
Feed on RSS: Post Feed RSS   Posts Feed,   Comments Feed RSS   Comments Feed