Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] History?; Sun Solaris? Carlo Contavalli
  • From: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] History?; Sun Solaris?
  • Date: Fri, 12 Nov 2004 21:36:35 +0100
  • References: <17B724DA3C6154B28F2B83D1@max.nt.nada.kth.se> <20041112152134.GA8872@commedia.it> <052C775D04A8C24F3C20924D@h210n2fls33o1111.telia.com>


  • On Fri, Nov 12, 2004 at 10:26:30PM +0100, Peter Svanberg wrote:
    > * It is said (on sourceforge) "Operating System: All POSIX
    > (Linux/BSD/UNIX-like OSes), Linux" - does this include Solaris 9 (SunOS
    > 5.9)? Anyone on the list have experience with installing and using it on
    > SunOS?
    Personally, I haven't tested it, but it should work as long as
    GNU Make and gcc is used. It may also work without gcc, if you
    don't enable debugging. If you have troubles, I'd be happy to
    provide as much support as I can. I really need to have
    feedbacks about modxslt on other architectures. However, if
    I were you, I'd wait for the 1.3.8 release of mod-xslt, which
    should solve many portability/compilation issues I received
    reports for (will be released before monday or monday itself)

    > * Besides installation, is it compatible with Dunkels system (2.0.4) on the
    > document level?
    the PI instruction:
    xslt-param has become modxslt-param
    xslt-base is no longer used
    xslt-stylesheet has become modxslt-stylesheet, with _many_
    enhancements, which may break compatibility
    you only need to worry about this if your documents
    use constructs like <?xslt-param... or <?xslt-stylesheet...
    To solve the problem
    find . -name '*.xml' |xargs perl -pi -e 's/<\?xslt-/<?modxslt-/g'
    should suffice. Backup your documents before doing this and
    test them before putting them online!!!

    XPath parameters
    many more parameters are being passed over to xslt
    stylesheets, and the prefix has changed from
    xslt- to modxslt- (for example, xslt-version became
    modxslt-version),
    you should worry about this only if your documents
    useconstructs like <xsl:value-of select="$xslt-version" ...
    To solve the problem, something like
    find . -name '*.xslt' |xargs perl -pi -e 's/\$xslt-/\$modxslt-/g'
    should suffice. Again, backup your documents first and test
    your stylesheets before putting them back online!!!

    Regarding document parsing, xslt usage and so on, it should be
    well compatible with Dunkel's work, since it uses the same libraries
    to parse documents (libxml2 and libxslt). Some slightly different
    behaviors may be observed in url handling (http:// and file://)
    and in DTD loading (... standalone="yes" or "no"... in case of
    yes, no DTD are ever loaded by mod-xslt). The url handling differences
    may cause troubles if you have dinamically generated stylesheets,
    like documents that use something like:
    <?xslt-stylesheet href="database-xslt.php" ?>
    in which case you would probably have to change it in:
    <?xslt-stylesheet href="local://database-xslt.php" ?>
    or alike. Please refer to the manual to know more about this kind
    of urls. Generally speaking, mod-xslt2 should have all mod-xslt
    features, plus a few ones. However, the semantic of some of them
    has slightly changed, so please read the manual.

    Cheers,
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    Term, holidays, term, holidays, till we leave school, and then work, work,
    work till we die.
    -- C.S. Lewis

      Powered by Sympa