I swear, one of these times, you're gonna wake up in a coma.

Cordelia ,'Showtime'


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!


tommyrot - Jan 09, 2014 6:20:52 am PST #23539 of 25496
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 have an XSLT question. I still only have a general understanding how XSL works, so I think I'm missing something obvious.

Here's a cut-down sample of the XML:

<?xml version="1.0"?>
<CatalogVendorItems count="10892558" offset="0" limit="100">
  <CatalogVendorItem>
    <catalogVendorItemID>4972042</catalogVendorItemID>
    <vendorNumber>AB0001</vendorNumber>
    <description>Fox Racing Demo Short: Black; SM (32" Waist Size)</description>
    <category>Shorts/Bib Shorts</category>
    <CatalogVendor>
      <catalogVendorID>1</catalogVendorID>
      <name>Quality Bicycle Products</name>
      <lastUpdate>2013-12-22T02:31:11-08:00</lastUpdate>
    </CatalogVendor>
  </CatalogVendorItem>

What I need is an XSLT transformation that will return all the children of CatalogVendorItem but not children below that (i.e. catalogVendorID, name, lastUpdate.

I know I could just specify every element I want returned, but there are actually a lot more children of CatalogVendorItem than I copied here. I was hoping for something more generic where I wouldn't have to put every tag I want in the XSLT document.


tommyrot - Jan 09, 2014 8:33:46 am PST #23540 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Ah, I figured it out. I have to use <xsl:copy>. And then exclude the stuff I don't want.

Although this solution isn't completely generic.


omnis_audis - Jan 09, 2014 9:21:43 am PST #23541 of 25496
omnis, pursue. That's an order from a shy woman who can use M-16. - Shir

I just bought a Sony NEX-5 camera. (It's a mirrorless camera similar to a micro four-thirds camera.)
OK, it's been awhile since I've looked at a camera and wanted to buy it. That. Got the camera juices forming. I love SLR control, but didn't want SLR heft/cost in digital.

Can't afford it. But, good to know of the evolution.


beekaytee - Jan 11, 2014 12:21:46 pm PST #23542 of 25496
Compassionately intolerant

Speaking of pictures, I found a set of clipart cds at the library book sale. I did not have my glasses with me, so I didn't notice that they are for Windows (copyright 2000).

Is there any way to open them on my mac, or did I just do a mitzvah for the library?


Typo Boy - Jan 11, 2014 1:04:49 pm PST #23543 of 25496
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

I presumed you already tried? Macs will open a lot of windows file formats and can reach most windows CDs. There are utilities out there that others can support you through, but before you do anything else you might try to just open the clip art. (the Mac probly won't run the garbagy search program that comes with the clip art, but the Mac built in search capability is better anyway.


beekaytee - Jan 11, 2014 2:26:02 pm PST #23544 of 25496
Compassionately intolerant

I did try to bring stuff up in Word. Didn't

The only thing that works so far is bringing up a file in openoffice, then saving it as a jpg and importing. Super tedious.


Rob - Jan 11, 2014 2:46:52 pm PST #23545 of 25496

What is the file extension on the individual image files?


beekaytee - Jan 11, 2014 3:05:58 pm PST #23546 of 25496
Compassionately intolerant

Rob, they are .wmf


Rob - Jan 11, 2014 4:40:52 pm PST #23547 of 25496

I can't find any easy way to convert .wmf files on the Mac.


beekaytee - Jan 11, 2014 4:48:36 pm PST #23548 of 25496
Compassionately intolerant

Thanks for the effort, Rob.

It was one of those too good to be true deals. Ah well. Maybe I can find a school that can use the disks.