Jayne: You wanna go, little man? Wash: Only if it's someplace with candlelight.

'Objects In Space'


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!


Gudanov - Mar 27, 2006 4:53:08 am PST #7703 of 10003
Coding and Sleeping

Their corporate customers wouldn't buy it, if legacy software wouldn't work.

Whlie I think Windows has plenty of flaws, I am impressed by the sheer variety of hardware it works on and the backward compatibility. Apple has the luxary of only having to run on a handful of different computer models. Linux and FreeBSD can run on a lot of hardware, but you have to get hardware that works with 'em rather than expecting anything you put together to work.


Gudanov - Mar 27, 2006 5:13:43 am PST #7704 of 10003
Coding and Sleeping

Myth update.

The full myth-box in the living room hooked up to the TV is working great but the power supply is too loud for my taste.

The computer it replaced (that was running GeeXBox) is in the process of being converted into a Myth frontend computer. (A tip, if installing from binary packages, use the same distribution for the frontend and backend. My backend/frontend box is on Fedora Core 4 and I first used Ubuntu for the Frontend, but the MythTV versions didn't match and the frontend couldn't talk to the backend.) The frontend is working fine, but needs some tweaking to get the remote control working. But still I can watch recorded video and live TV on the frontend.


Gris - Mar 27, 2006 7:59:48 am PST #7705 of 10003
Hey. New board.

"That's why a company like Apple has such an easier time of innovation."

But OS X Tiger can run pretty much all OS X software ever created, and most pre-OS X software in Classic. That's a lot of legacy support. Yes, the new Intel macs have dropped Classic support, but they could get away with that because almost nobody is really running Classic software anymore. I guess my point is - Apple provides legacy software support too, at least to a very large extent (and I know for a fact that not all Windows 95 software will actually run on XP)

Couldn't Windows do the same thing? Provide an emulation layer, separate from the new stuff, for legacy software, and thus start from scratch for the new OS? It seems like a smart move, overall.


tommyrot - Mar 27, 2006 8:01:16 am PST #7706 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.

Anyone here know xsl?


le nubian - Mar 27, 2006 8:02:28 am PST #7707 of 10003
"And to be clear, I am the hell. And the high water."

no, but I know xxx.

(sorry)


Tom Scola - Mar 27, 2006 8:07:42 am PST #7708 of 10003
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Anyone here know xsl?

A little.


Gudanov - Mar 27, 2006 8:08:04 am PST #7709 of 10003
Coding and Sleeping

I've used and written a little simple xsl, but it's not something I work with very often at all. I might be able to help if it's a pretty simple question.


tommyrot - Mar 27, 2006 8:16:15 am PST #7710 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.

I don't know if I can even explain this correcly....

OK, say we have the xsl:

<xsl:template match="/">
	<xsl:for-each select="employees/employee[@g=0]">
		<option>
			<xsl:attribute name="value"><xsl:value-of select="@i"/></xsl:attribute>
			<xsl:value-of select="@n"/> - <xsl:value-of select="status/@s" />
		</option>
	</xsl:for-each>
</xsl:template>

I want the stuff in the for-each loop to only happen if the

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

actually matches something.

There's more stuff going on, but hopefully this is enough info....

eta: the <option> stuff is only there because this is returning html that's used in a drop-down box.


Tom Scola - Mar 27, 2006 8:19:41 am PST #7711 of 10003
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Easy-peasy.

<xsl:template match="/">
	<xsl:for-each select="employees/employee[@g=0]">
          <xsl:if test="status/@s">
		<option>
			<xsl:attribute name="value"><xsl:value-of select="@i"/>
			<xsl:value-of select="@n"/> - <xsl:value-of select="status/@s" />
		</option>
          </xsl:if>
	</xsl:for-each>
</xsl:template>

Although if it's more complicated than that, you'll probably end up having to use an t xsl:choose instead of an t xsl:if

.


tommyrot - Mar 27, 2006 8:25:02 am PST #7712 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 - I'll give that a try.

That was the direction I was going in, but I didn't know about the

<xsl:if test=

stuff....