Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 2 of 2 < 1 2
Topic Options
#74205 - 24/02/2002 03:20 Re: xsl stylesheet for hijack v206 [Re: justinlarsen]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I un-tar'ed the file and saw that it contained three files:

default.xsl
default.css
default.js

The first two (default.xsl default.css) were present in Charcoal's file. The last one (default.js) was not.

The first one (default.xsl), I placed in the root directory in place of Charcoal's file. I noticed that your version was significantly smaller, but did not check it in detail as to why.

The second one (default.css) was in Charcoal's "images" folder (based on his zipfile), so when I un-tar'd yours, I put it into the same place, replacing Charcoal's file. It, too, was significantly different in size.

The third files (default.js) did not exist in Charcoal's installation. Since charcoal has a similarly-named file in images (jscripts.js), I placed it there, assuming that's where it was supposed to go.

I get the same exact error on the Broceliande playlist.

I tried copying your two other files up to the root. Same result.
_________________________
Tony Fabris

Top
#74206 - 24/02/2002 03:22 Re: xsl stylesheet for hijack v206 [Re: tfabris]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
It's an encoding problem - as far as I've been able to test, we need
<?xml version="1.0" encoding="iso-8859-1"?>
instead of
<?xml version="1.0"?>
at the top of the generated xml-file.
I've sent a message to Mark about this, but I'm not sure it doesn't break anything else...

It's line 7121 in the v210 patch file if anyone else is set up to compile kernels...

/Michael
_________________________
/Michael

Top
#74207 - 24/02/2002 06:26 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
I am! Sorry for the little feedback I am giving, I am just playing around with it and I am enjoying it totally! Great Job!!!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#74208 - 24/02/2002 09:44 Re: xsl stylesheet for hijack v206 [Re: mtempsch]
crocklobster
member

Registered: 19/12/2001
Posts: 108
I agree, that encoding attribute needs to be added.

Chris

Top
#74209 - 24/02/2002 09:55 Re: xsl stylesheet for hijack v206 [Re: mtempsch]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
It's in v211 (now out).

-ml

Top
#74210 - 24/02/2002 10:10 Re: xsl stylesheet for hijack v206 [Re: mlord]
Janosch
journeyman

Registered: 03/12/2000
Posts: 50
Loc: Berlin, Germany
Yeahhh and it is working, at least with german special characters like ä,ö,ü and so on that did not work before 2.11.

Great Job. Seems Display Server is getting oboslete......No much functionality that is not in Hijack + XML Sytleshet left. :-)

Personally i'm just missing the Systeminfo Page *hint* *hint*

:-)

janosch

Top
#74211 - 24/02/2002 10:15 Re: xsl stylesheet for hijack v206 [Re: mlord]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
Thank you!

Works great!

/Michael

_________________________
/Michael

Top
#74212 - 24/02/2002 10:37 Re: xsl stylesheet for hijack v206 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, I still can't get it to work.

It no longer chokes on that playlist, but I still get this screen when I connect to http://empeg/drive0/fids/101?.xml :



My installation steps were as follows:

1) Remove previous-attempt XSL file and the entire contents of the "images" folder.

2) Install Hijack 211.

3) I unzipped the following file (from CharcoalGray99) to my hard disk: http://empeg.comms.net/files/72165-xmlwebinterface4.zip , using WinZip.

4) It created a "default.xsl" file and an "images" folder with a bunch of files.

5) I uploaded the xsl file to the root of the player and also uploaded the images directory, intact, to the player. Using IE 5.5's FTP-browser interface.

This page partially works. I can send commands to the player and the remote-control screen works. (By the way, I noticed the buttons on the GIF of the remote control screen are in the wrong order. Right is down and down is right. Is this a bug for everyone or just me?)

So what did I do wrong?


Attachments
72271-xml.gif (253 downloads)

_________________________
Tony Fabris

Top
#74213 - 24/02/2002 10:51 Re: xsl stylesheet for hijack v206 [Re: tfabris]
crocklobster
member

Registered: 19/12/2001
Posts: 108
This looks to me like you might not be running MSXML 3.0.

Go here and see if it says you have MSXML2 v3.0 installed and the mode is Replace V3.

Also, can you post your xml?

Top
#74214 - 24/02/2002 10:55 Re: xsl stylesheet for hijack v206 [Re: tfabris]
Gary
stranger

Registered: 03/02/2002
Posts: 25
Tony, what IE version are you using? I see the same screen on an IE 5.5 machine. But the XML works great on my IE 6.0 machine. There was discussion on the original XML thread

http://empeg.comms.net/php/showflat.php?Cat=&Board=hackers_prog&Number=68387&page=0&view=collapsed&sb=5&o=0&fpart=

about XML versions.

So you might try upgrading your IE...

Top
#74215 - 24/02/2002 10:57 Re: xsl stylesheet for hijack v206 [Re: tfabris]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
I don't trust IEs ftp capabilities further than I can throw them... You might want to try with a dedicated ftp client. I also used the 72165-xmlwebinterface4.zip file.
I've attached a zip with the files as taken from my empeg, you could give those a try too.

/Michael


Attachments
72285-test.zip (92 downloads)

_________________________
/Michael

Top
#74216 - 24/02/2002 11:08 Re: xsl stylesheet for hijack v206 [Re: crocklobster]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
The sniffer page confirms that my IE 5.5 installation is in fact an older version of XML. So that's the trouble.

I hate IE6 but I am afraid to downgrade on my work machine after installing it. On my home machine, I will not upgrade to IE6, however I will investigate options for upgrading my XML engine without changing the browser version.

Is the newer version of XML absolutely necessary for the functions you're trying to pull off? In my experience, it's always good to allow older browsers if at all possible. You get fewer questions like mine cropping up all the time.

Incidentally, I did some hand-editing of lines 24/25/26 in the default.xsl file and it now has the four buttons selecting correctly. I don't know if this is because the original file is out of order, or if my bad version of XML is the cause of it all. I will find out in a bit.
_________________________
Tony Fabris

Top
#74217 - 24/02/2002 11:13 Re: xsl stylesheet for hijack v206 [Re: tfabris]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Most stylesheets I've seen so far are using XSLT 1.0 specific stuff. Especially because Mozilla requires it. It's been mentioned before that it's highly recommended to upgrade the MSXML parser. There are links in other threads to good info about it.

The working draft spec is pretty limited. It doesn't support a lot of the XPATH functions that people are using (like position()).

You might also want to check the netcrucible msxml faq



Top
#74218 - 24/02/2002 11:14 Re: xsl stylesheet for hijack v206 [Re: tfabris]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Is the newer version of XML absolutely necessary for the functions you're trying to pull off? In my experience, it's always good to allow older browsers if at all possible.

crocklobster showed a working draft version that worked with IE5 & IE5.5, I didn't write two versions because I don't have access to IE5 (I'm running XP)

Incidentally, I did some hand-editing of lines 24/25/26 in the default.xsl file and it now has the four buttons selecting correctly.

Thanks. My bug.

Tom

Top
#74219 - 24/02/2002 11:17 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
crocklobster
member

Registered: 19/12/2001
Posts: 108
So far, all the things I've seen would be technically possible with the working draft spec, they would just be a lot more difficult. Especially the alternate row colouring. If someone else wants to maintain WD stylesheets, that's cool. It just won't be me.

Top
#74220 - 24/02/2002 11:40 Re: xsl stylesheet for hijack v206 [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, installing XML Parser 3.0 Service Pack 2 from Microsoft solved the problem.

I now get full support for the XML stuff. It rocks. Having the remote-control empeg (without VNC) in the upper right corner is quite nice. Basically, we're back to where we were with Displayserver, minus the Java. Coolness!

Loren: If you want to stick any of this stuff in the Hijack FAQ, you can use my screen shot (above) in the FAQ if you like. I don't know if you've been given permissions to upload screen shots to the riocar.org site, but if you have, they go into upload/faqpics.

The XML 3.0 parser is available from Microsoft. I went to their downloads site and did a search on "xml parser" to retrieve it. Painless. Direct link to the file needed is here, although I wouldn't necessarily put that link in the FAQ, you know MS's penchant for inducing web-rot by randomly changing their internal links on a weekly basis.
_________________________
Tony Fabris

Top
#74221 - 24/02/2002 11:43 Re: xsl stylesheet for hijack v206 [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
My only "request" is that this stuff not be MS-browser specific. Meaning, I want to play too, and I run Linux. And on Linux, Mozilla is the main browser when it comes to XML.

Speaking of XML.. v212 of Hijack will probably break most of the existing hacks. See the releasenotes (new thread, soon) for details.

Cheers

-ml

Top
Page 2 of 2 < 1 2