[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XMTP XML file breaks Saxon and XT
Philip Gooch wrote: > > 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"> XMTP is a namespace application so that headers (which are in the "mime" namespace) won't conflict with body content. try: declare mime ns in: <xsl:stylesheet xmlns:mime="http://www.grovelogic.com/xmtp"> and then: <xsl:template match="mime:MIME"> Also, there has been a bug in Xalan causing a problem for XMTP due output namespaces. I've recently submitted a patch which fixes this, so if you are having problems with Xalan, try downloading a new version (i.e. developer's snapshot). Jonathan Borden The Open Healthcare Group http://www.openhealth.org 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
|