Re: MSXML 3.0 XSLT. Does it work?

Subject: Re: MSXML 3.0 XSLT. Does it work?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 12 Jul 2000 10:05:52 GMT

>        <xsl:text disable-output-escaping="no">&lt;MIFFile

why are you doing this instead of <MIFFile> ?
Any processor is allowed to ignore disable-output escaping and in any
case it can only work if the output is being linearised and then
reparsed as XML. This often is not the case in an embedded system
like msxml.

However the main thing wrong with your stylesheet is that
     <xsl:template match="SearchSet">
matches an element SearchSet in the null namespace but your document has

<SearchSet xmlns="urn:schemas-microsoft-com:xml-data"

ie an element SearchSet in the namespace urn:schemas-microsoft-com:xml-data

so you need to have

<xsl:stylesheet version="1.0" xmlns:xsl
="http://www.w3.org/1999/XSL/Transform";
xmlns:d="urn:schemas-microsoft-com:xml-data">
     <xsl:output method="html" indent="yes"/>
     <xsl:template match="/">
          <xsl:apply-templates/>
     </xsl:template>
     <xsl:template match="d:SearchSet">

etc.

David


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


Current Thread