XMTP XML file breaks Saxon and XT

Subject: XMTP XML file breaks Saxon and XT
From: Philip Gooch <philg@xxxxxxxxxxxxx>
Date: Tue, 08 Aug 2000 18:28:11 +0100
Hi

I am trying to transform the XMTP sample data given at
http://www.openhealth.org/documents/xmtp.htm

For some reason, both Saxon and XT don't process the document correctly,

and the xsl:template rules I specify do not get fired. However, when I
remove the xmlns attributes from the MIME element and remove all
namespace prefixes from the document, everything works.

Here's a sample of the document (from the above Web site)

<MIME xmlns:mime="http://www.grovelogic.com/xmtp";
xmlns="http://www.grovelogic.com/xmtp";>
<Content-Type
boundary="----=_NextPart_000_0016_01BDF701.EDDE9FE0">multipart/alternative</Content-Type>

<Content-transfer-encoding>binary</Content-transfer-encoding>
<Date>Tue, 13 Oct 1998 23:33:49 -0400</Date>
<From>&quot;Borden, Jonathan&quot; &lt;jborden@xxxxxxxxxxxx&gt;</From>
<Importance>Normal</Importance>
<Message-ID>&lt;001501bdf723$74f03fe0$d3228018@xxxxxxxxxxxxxxxxxxxx&gt;</Message-ID>

<MIME-Version>1.0</MIME-Version>
<Received>from jabr (jabr.ne.mediaone.net [24.128.34.211])
by chmls05.mediaone.net (8.8.7/8.8.7) with SMTP id XAA27071
for &lt;test-xmtp@xxxxxxxxxxxxxxxxxxxx&gt;; Tue, 13 Oct 1998 23:42:47
-0400 (EDT)</Received>
<Subject>this is a simple message</Subject>
<To>&quot;XMTP&quot; &lt;test-xmtp@xxxxxxxxxxxxxxxxxxxx&gt;</To>
<X-Mailer>Microsoft Outlook 8.5, Build 4.71.2173.0</X-Mailer>
<X-MimeOLE>Produced By Microsoft MimeOLE V4.72.3110.3</X-MimeOLE>
<X-MSMail-Priority>Normal</X-MSMail-Priority>
<X-Priority>3 (Normal)</X-Priority>
...

This stylesheet fails:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  version="1.0" >

<xsl:template match="/">
 <html>
  <head><title>test mail output</title></head>
  <body>
   <xsl:apply-templates/>
  </body>
 </html>
</xsl:template>

<xsl:template match="MIME" >
 <xsl:apply-templates />
</xsl:template>

<xsl:template match="Date" >
 <h1>Date:
  <xsl:apply-templates />
 </h1>
</xsl:template>

</xsl:stylesheet>

the Date template never gets fired. However, remove all the namespace
stuff in the document and it works.

Anyone have any idea about what is causing this?

Phil

----------------------------------------
Phil Gooch
XML Analyst
Vizzavi
1st Floor, Marble Arch Tower
55 Bryanston St
London
W1H 7AJ
Telephone: UK +44 (0)20 7859 8228
Facsimile: UK +44 (0)20 7868 8822
------------------------------------------



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread