This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XMTP XML file breaks Saxon and XT


> 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">
> 
> This stylesheet fails:
>  
> <xsl:template match="MIME" >
>  <xsl:apply-templates />
> </xsl:template>
> 
> 
> Anyone have any idea about what is causing this?
> 
Your MIME element has a non-null namespace URI, so the pattern match="MIME"
will not match it. Use

<xsl:template match="z:MIME" xmlns:z="http://www.grovelogic.com/xmtp">

Mike Kay


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]