[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XMTP XML file breaks Saxon and XT

Subject: XMTP XML file breaks Saxon and XT
From: Philip Gooch <philg@xxxxxxxxxxxxx>
Date: Mon, 07 Aug 2000 12:24:18 +0100
xmtp
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



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.