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
2010 01 02 03 04 05 06 07 08 09 10 11 12
2011 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] exsl:document in modxslt Eric Anderson
  • From: Eric Anderson <ejona86@xxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] exsl:document in modxslt
  • Date: Fri, 22 Jul 2005 12:43:17 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TqHnwnTWLLYBMpMTana+2olxabRHSgG8lxohYp6Gr8qUHiJ7cKCfXbNaEmdU25lSxQpRoKq17gZ4aWmo4+xQNaeHqqSEdIq6s2fxCWvrSI5/NEwvReOhEQPA2SwZcJ9VvWiNvMDBCxNStXEtOiSZo7jkb7vBBvu1cIzS7JZnRKA=
  • References: <42E0191D.9030807@cam.ac.uk> <6cd02f8c050722065635fd36@mail.gmail.com> <42E0FFBE.7090507@cam.ac.uk> <6cd02f8c05072209177fbe157e@mail.gmail.com> <42E1265A.1060607@cam.ac.uk>
  • Reply-to: Eric Anderson <ejona86@xxxxxxxxx>


  • I don't know of any way to get modxslt to do exactly what you want.
    But I have some ideas.

    > If I relied on hardcoding paths in the xslt, I couldn't
    > use the same xslt as I do when using it from the
    > command line, and if I attempted to view two of these
    > documents at the same time, they'd overwrite each other's
    > output.
    Well, this might not be what you were thinking of, but you could use
    variable hard coded paths like:
    /tmp/{$makeItVary}/files
    - or so that you don't have to mess with directories -
    /tmp/{$makeItVary}-files

    You could set an id for each file that would be fed through the xslt
    style sheet and use this id in place of the makeItVary. If you don't
    like that idea, then maybe use the time, etc, to vary names. The main
    problem I see with using a time is that the files would have to be
    cleaned up periodically.

    It may also be possible to use the $HEADER variable to produce a
    unique location as well. I would know how to do so in php, but since
    php set the variables I would use and since is not easy to find all of
    the variables stored in $HEADER, I don't know how well this would
    work.

    Yet another possibility is to pass an arg to the stylesheet from the
    python script using GET. This may prove to be the best solution
    because you only would have to touch two files, the python and the
    stylesheet.

    I personally do not like the idea of using absolute links either, but
    since they do work, I wouldn't give up on them yet. If you do use
    absolute links, you would probably want to set a tmpPath variable or
    whatever like <xsl:variable name="tmpPath">/tmp</xsl:variable> so that
    if you ever need to move the path it would prove decently simple.

    Hope this helps even though using a relative href would be most ideal,
    Eric Anderson

      Powered by Sympa