2
でXML要素とコンマ別々の名前を変更します。ここで
は私のXMLである:ここではは私がやりたいことはiavmNotice/iavmTitleにiavmNotice /タイトルの名前を変更しているXSLT
<iavmNotice xmlns="http://stuff.com" noticeId="138643">
<title>Cisco Vulnerability</title>
<techOverview>
<entry>
<title>2012-2490</title>
<description>Cisco ID 71.</description>
</entry>
<entry>
<title>2012-2525</title>
<description>Cisco ID 69.</description>
</entry>
</techOverview>
</iavmNotice>
は私の試みです:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="iavmNotice/title">
<iavmTitle>
<xsl:apply-templates select="@* | node()"/>
</iavmTitle>
</xsl:template>
<xsl:template match="@iavmNotice/title">
<xsl:attribute name="iavmTitle">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
また、techOverview/entry/titleをコンマで区切ってインポートする方法もありますか? 2012-2490、2012-2525としてインポートして説明を削除してください。
グレート答え!どうもありがとうございました! techOverview/entry/titleをコンマで区切ってインポートする方法はありますか? 2012-2490、2012-2525としてインポートして説明を削除してください – jjohnson
問題を説明する特定のタイトルで個別の質問として投稿すると、おそらくそれで幸運になります – sideshowbarker