0

わたしは

trying to update xsl file
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
      <xsl:output method="xml" indent="yes" doctype-public="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" doctype-system="http://java.sun.com/dtd/web-app_2_3.dtd"/>
         <xsl:template match="node()|@*">
    <xsl:copy>
       <xsl:apply-templates select="node()|@*"/>
    </xsl:copy>
  </xsl:template>
  <xsl:template match="display-name">
    <xsl:copy-of select="."/>
    <filter>
      <filter-name>ssoauthagent</filter-name>
      <filter-class>12234455</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>ssoauthagent</filter-name>
      <url-pattern>/*</url-pattern>
      <dispatcher>INCLUDE</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
  </xsl:template>
</xsl:stylesheet>

""xsl:stylesheet/xsl:template/filter/filter-class" の値を値 "Hello" に変更するような xmlstarlet を使用して、以下のコマンドを実行しますが、エラーが発生します:-

xml ed -O -u "xsl:stylesheet/xsl:template/filter/filter-class"  -v "Hello" transformWeb.xsl 
XPath error : Undefined namespace prefix
xmlXPathCompiledEval: evaluation failed

どこが間違っているのですか?

4

1 に答える 1