[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XMTP XML file breaks Saxon and XT
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>"Borden, Jonathan" <jborden@xxxxxxxxxxxx></From> <Importance>Normal</Importance> <Message-ID><001501bdf723$74f03fe0$d3228018@xxxxxxxxxxxxxxxxxxxx></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 <test-xmtp@xxxxxxxxxxxxxxxxxxxx>; Tue, 13 Oct 1998 23:42:47 -0400 (EDT)</Received> <Subject>this is a simple message</Subject> <To>"XMTP" <test-xmtp@xxxxxxxxxxxxxxxxxxxx></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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|