2016-01-21 80 views

回答

0

添加属性“排除对结果的前缀”关于XSL:样式表节点并列出要排除

样品

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fn="http://www.w3.org/2005/xpath-functions" version="2.0" exclude-result-prefixes="xsl fo xs fn"> 
    <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="no"/> 
    <xsl:template match="@*|*|comment()"> 
     <xsl:copy> 
      <xsl:apply-templates select="@*|*|text()|comment()|processing-instruction()"/> 
     </xsl:copy> 
    </xsl:template> 
</xsl:stylesheet> 
0

呀命名空间!

Jean-Michel是对的,你必须使用exclude-result-prefixe =“soapenv”,这对我很有用。使用排除对结果prefixe = “soapenv” 的XSLT不工作 How to remove namespace from the output xml?

+0

这个问题在这里aswered。不知道是什么问题。日志中介者还打印没有命名空间的xml,但是当ESB发送xml到结束点时,命名空间即将到来。有没有人遇到过这个。 – storia321

+0

您正在使用哪个版本的wso2esb?你可以发布你的代理代码吗? –