[xsl] Using XSL to output 2 files

Subject: [xsl] Using XSL to output 2 files
From: Mike Stroud <stroudmw@xxxxxxxxx>
Date: Mon, 2 Feb 2009 13:55:56 +0200
Hello All,

I have (another) question. I have an XML file that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Catalog>
  <cds>
    <cd>
      <number>000001</number>
      <title>Empire Burlesque</title>
    </cd>
    <cd>
      <number>000002</number>
      <title>Hide Your Heart</title>
    </cd>
  </cds>
  <artists>
    <artist>
      <number>000001</number>
      <name>Bob Dylan</name>
    </artist>
    <artist>
      <number>000002</number>
      <name>Bonnie Tyler</name>
    </artist>
  </artists>
 </Catalog>

 Can I use XSL to output 2 files: 1 for cds and another for atrists?

<?xml version="1.0" encoding="UTF-8"?>
  <cds>
    <cd>
      <number>000001</number>
      <title>Empire Burlesque</title>
    </cd>
    <cd>
      <number>000002</number>
      <title>Hide Your Heart</title>
    </cd>
  </cds>

<?xml version="1.0" encoding="UTF-8"?>
  <artists>
    <artist>
      <number>000001</number>
      <name>Bob Dylan</name>
    </artist>
    <artist>
      <number>000002</number>
      <name>Bonnie Tyler</name>
    </artist>
  </artists>

Thanks, Mike.

Current Thread