PDA

View Full Version : XSL and XSLT



Bok
03-29-2006, 12:18 PM
Anyone know much ?

I'm trying to debug why an XSL stylesheet I have is not working in firefox but does in IE, but don't really know where to start. Pity there wasn't a validator at w3 for it..

This is work not stats btw :)

Bok

the-mk
03-29-2006, 12:49 PM
Once I needed to confirm a xml-file to be valid. Therefore I used this one: http://www.xmlcooktop.com/

I've read somewhere, that it could check xsl too, but I would need to download it again to verify that...

Maybe you could give it a try

You could also take a look at http://www.netcrucible.com/xslt/xslt-tool.htm

gopher_yarrowzoo
03-29-2006, 04:00 PM
if it's anything like a CSS stylesheet then good luck - do as I do and try and debug it an element group at a time if possible and if you see what I mean.. In Firefox try running the DOM inspector (not sure if it's an extension or not) but it's good for finding out what element is inheriting what from where (well works for CSS)
Good Luck

IronBits
03-29-2006, 08:47 PM
Pity there wasn't a validator at w3 for it..
Bok http://www.w3.org/TR/xslt20/ ;)
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/MBNSDKv1/htm/mbs_mbn_customizingserversidevalidationrules.asp

Bok
03-29-2006, 09:39 PM
That's not a validator though, that's just the rules.

I *think* I know what's causing the problems now, the namespace is fscked due to IE 5.5 and below being non-standard.

Bok

gopher_yarrowzoo
03-30-2006, 03:47 PM
yeah dont' use - or _ in namespace at all IE 5.x and below BORK at it and watch name length it gets a bit weird if names are close once you hit a certain name length since ie5 is document.all.ID.blah not std document.getElementByID('blah') although I think there should be a way to impliement it via a bit of javascript to mimic the same effect on both and just use the one call - I see it as part of a x-browser script for stuff years ago.. not sure if it would work with XSL.