Death is your art. You make it with your hands day after day. That final gasp, that look of peace. And part of you is desperate to know: What's it like? Where does it lead you? And now you see, that's the secret. Not the punch you didn't throw or the kicks you didn't land. She really wanted it. Every Slayer has a death wish. Even you.

Spike ,'Conversations with Dead People'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


DCJensen - May 07, 2011 6:21:58 am PDT #16712 of 25512
All is well that ends in pizza.

But will it run OSX?


tommyrot - May 08, 2011 7:04:16 am PDT #16713 of 25512
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Mr Scola, are you around today?

I am now trying to do my xsl transformation on the server in the .ASP page (using VB Script). I think I've almost got it working. Currently I'm testing the transformation using Editix. When I run it, I get the following error:

The URI 'http://www.w3.org/1999/XSL/Transform' does not identify an external Java class

That error occurs on the following line in the xsl document:

<xsl:if test="pay_date[@dow = xsl:getDOW($loopcounter) and @sf = xsl:getSF($loopcounter)]">

The function DOW is defined like so:

<msxsl:script language="JScript" implements-prefix="xsl">
function getDOW(iCounter){
if(iCounter == 8){
return 6;
}
if(iCounter == 7){
return 7;
}
if(iCounter == 1){
return 6;
}
return 7 - iCounter;
}

...

We don't use Java in our xsl stuff, so I'm not sure what's going on. The error might be because Editix doesn't have some Java it needs or something? Any ideas? (I'm not at work, so I can't try the transformation on the .ASP page right now.)

eta: OK, I think the problem is that Editix doesn't have access to the JScript interpreter. So I'll have to try this tomorrow on our web server.


Tom Scola - May 08, 2011 7:24:41 am PDT #16714 of 25512
hwæt

I would try something along the lines of putting the function in its own namespace, i.e.

<msxsl:script language="JScript" implements-prefix="foo">

And then calling the function as foo:getDOW rather than xsl:getDOW.

You will also need to declare the namespace at the top of the document:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:foo="http://your-url-here"
extension-element-prefixes="foo">

Again, I'm not very familiar with the MS toolset, so I don't know if this will work or not.


tommyrot - May 08, 2011 7:28:23 am PDT #16715 of 25512
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Thanks, Tom.

If I comment out the stuff that calls the JScript functions, it runs without error and the results are mostly correct. So I'm just going to wait until I'm at work tomorrow to look at this some more.


beekaytee - May 08, 2011 5:25:53 pm PDT #16716 of 25512
Compassionately intolerant

I am being socially (media) awkward and I don't know why.

Every tweet ends up double posting, which leads to double facebook posts as well.

I like the convenience of the cross-posting, but am embarrassed by the doubling up.

Anyone know how to fix this? Does having the autoFB function on make this happen?


flea - May 09, 2011 5:48:48 am PDT #16717 of 25512
information libertarian

Things that are annoying me about Firefox 4: it's harder to get to the list of bookmarks; there are things I use all the time that I don't want on my toolbar (like here). And when I right-click, they've switched the positions of the links to open in a new tab vs. a new window. Now tab is first, which is better, but I am so used to going to the second link automatically that I keep opening things in new windows which is annoying!


Tom Scola - May 09, 2011 6:41:45 am PDT #16718 of 25512
hwæt

Wow. $1.50/issue for the New Yorker might actually be worth it: [link]


Jon B. - May 09, 2011 7:17:14 am PDT #16719 of 25512
A turkey in every toilet -- only in America!

Pretty sure the print edition is less than that and it comes with the web-based version as a gift with purchase.


Tom Scola - May 09, 2011 7:21:54 am PDT #16720 of 25512
hwæt

Print edition is $10 more per year.


Jon B. - May 09, 2011 8:43:52 am PDT #16721 of 25512
A turkey in every toilet -- only in America!

Print edition is $10 more per year.

Sorry, you are correct. Though they sometimes have deals that would make it cheaper.