[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Document function with Sablotron and timestamp co

Subject: Re: Document function with Sablotron and timestamp conversion
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Mon, 28 Feb 2005 11:29:23 -0700
tivo capturedate
Mihir writes:
> So instead I opted to use the document function
> I used... <xsl:value-of select="document(concat('timeconvert.php?hex=',
> tivo:Details/tivo:CaptureDate)/time)" /> but Sablotron doesn't like it and
> says it can't open the file even though timeconvert.php is in the same
> folder as the XSL and xml files. The timeconvert.php returns <time>[Human
> readable time]</time>
> 
> 
> Warning: Sablotron error on line 1: cannot open file
> '/home/riffola/public_html/tivo/timeconvert.php?hex=0x422226BE' in
> /home/riffola/public_html/tivo/index.php on line 4
> 
> Where index.php is just a short script that asks PHP to parse nowplaying.xml
> with nowplaying.xsl using Sablotron.

Exactly: it's a CGI script, not merely a file name, and it takes a
parameter.  And the document function takes a URI.  So you need
something like

<xsl:value-of select="document(concat('http://localhost/timeconvert.php?hex=',
                                      tivo:Details/tivo:CaptureDate)/time)" />

-- 
Kevin Rodgers

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.