xsl-list
[Top] [All Lists]

Re: RE: [xsl] How to Handel whitespace in xsl:if test

2006-06-04 17:22:37
On 6/5/06, cknell(_at_)onebox(_dot_)com <cknell(_at_)onebox(_dot_)com> wrote:
I'm very fond of Bach (J.S.), could you provide and example that produces the
Brandeberg Concerto #3 (in G, BWV 1048)?

Hmm ;

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
        <xsl:strip-space elements="*" />
        <xsl:output method="xml" indent="no" encoding="iso-8859-1"
                doctype-public="-//Recordare//DTD MusicXML 1.1 MIDI//EN"
                doctype-system="http://www.musicxml.org/dtds/midixml.dtd";
         />
        <xsl:template match="/">
          <xsl:variable name="ext"
select="document('http://musicmoz.org/Sound_Files/MIDI/Classical/index.xml')/*"
/>
          <xsl:variable name="bach"
select="document($ext[(_at_)id='194282-1006097688']/@url)/*" />
          <xsl:apply-templates select="$bach" />
        </xsl:template>
</xsl:stylesheet>

... umm, except the final file is .mid binary, but given the silly
notion of this thread I'm allowing for some slack here ... :)


Alex
--
"Ultimately, all things are known because you want to believe you know."
                                                        - Frank Herbert
__ http://shelter.nu/ __________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--