We'll be in our bunk.

Wash ,'War Stories'


Buffistechnology 2: You Made Her So She Growls?  

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!


Tom Scola - Mar 27, 2006 9:48:50 am PST #7715 of 10003
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Tommyrot, what I would do is get rid of the lines:

selectField = xslStyle.selectSingleNode("...");
selectField.value = "status[@pp=" + varPayPeriod + "]/@s"

replace it with:

xslStyle.addParameter("varPayPeriod", varPayPeriod);

add a

<xslt:param name="varPayPeriod"/>

to the beginning of your .xsl file, and change the

<xsl:value-of select="status/@s" />

to

<xsl:value-of select="status[@pp=$varPayPeriod]/@s" />

and use

<xsl:if test="status[@pp=$varPayPeriod]/@s" />

You have my permission to go and beat the original programmer with a stick.

(I might not have the syntax correct, you might have to use @pp='$varPayPeriod' with single quotes)


tommyrot - Mar 27, 2006 10:33:52 am PST #7716 of 10003
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.

what the original programmer is doing is modifying the stylesheet on the fly, so that the stylesheet that is executed will be different than what the code you see.

Very kludgy.

Heh. That's probably why I couldn't find anything like it in my "Beginning XML" book. I think that book does have the technique of passing a parameter to xsl like you show.

I've got a few other things to do, but I'll try your code out soon.


Spidra Webster - Mar 27, 2006 5:32:49 pm PST #7717 of 10003
I wish I could just go somewhere to get flensed but none of the whaling ships near me take Medicare.

A city in Oklahoma was threatening the CentOS Linux distribution because the default Apache test page was showing up on their website.

OMG. I've had customers like that. Unbelievable. The distro guy was unbelievably patient and the OK guy was an asshat not to apologize.


Spidra Webster - Mar 28, 2006 8:41:19 am PST #7718 of 10003
I wish I could just go somewhere to get flensed but none of the whaling ships near me take Medicare.

Are there any books that folks here think are "must have" tech books that are on either the Que or Sams imprints? I have a short window in which I could obtain such things and would like to know if there's anything I should be gunning for. Monsieur Scola recommended ""Unix System Administrator's Handbook", which isn't on either of those imprints but was still something I could get a discount on. It looks like it will be an interesting read.

I have good access to books on Mac OS X from a theoretical point of view, but books that have good "down in the trenches" advice on networks, Mac OS X, Linux and Windows would be of interest to me.


Tom Scola - Mar 28, 2006 10:47:39 am PST #7719 of 10003
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Windows Is So Slow, but Why?

Check out all these anonymous blog comments from MSFT employees, calling for management to be fired.


Gudanov - Mar 28, 2006 11:46:14 am PST #7720 of 10003
Coding and Sleeping

How long has it been since XP came out?

It does seem like quite awhile for a signifcant upgrade to Windows to come out. OTOH, it doesn't seem like Microsoft has been suffering greatly because of it.


DXMachina - Mar 28, 2006 11:49:07 am PST #7721 of 10003
You always do this. We get tipsy, and you take advantage of my love of the scientific method.

How long has it been since XP came out?

2002, I think. Most of their previous verisons came out on a two to three year cycle. Vista is overdue, even if you count 2003 Server.


Spidra Webster - Mar 28, 2006 11:52:51 am PST #7722 of 10003
I wish I could just go somewhere to get flensed but none of the whaling ships near me take Medicare.

Wikipedia, bless its soul, has entries for MacOS, Windows and Photoshop that detail the version releases and dates. That has been such a godsend in my work.

[link]


tommyrot - Mar 28, 2006 11:58:30 am PST #7723 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Huh. I had no idea Wikipedia had that much computer info.

They even have a big entry for 'DLL hell': [link]


Spidra Webster - Mar 28, 2006 12:01:38 pm PST #7724 of 10003
I wish I could just go somewhere to get flensed but none of the whaling ships near me take Medicare.

I was so glad the day I discovered those entries. The forerunners at my soon-to-be-ex-place of employ were TERRIBLE at noting what version of an app a book was made for (if the app wasn't in the title of the book by version). They stupidly assumed that 6 years later people would remember... I did a lot of cross-referencing with the help of Wikipedia.