0
値の内側に、私は項目内のサブリストを追加したいサブリストを移動する方法:項目が
マイソースのxml:
<body>
<p>blahblah</p>
<ul outputclass="l1">
<li outputclass="lt1">blahblah</li>
<li outputclass="lt1">blahblah</li>
<li outputclass="lt1">blahblah
<ul outputclass="l2">
<li outputclass="lt2">blahblah</li>
<li outputclass="lt2">blahblah<fn><p>blah</p></fn></li>
<li outputclass="lt2">blahblah
<ul outputclass="l3">
<li outputclass="lt3">blahblah<fn><p>blah</p></fn></li>
<li outputclass="lt3">blahblah</li>
<li outputclass="lt3">blahblah</li>
</ul></li>
</ul></li>
<li outputclass="lt1">blahblah</li>
<li outputclass="lt1">blahblah</li>
</ul>
<p>blahblah</p>
</body>
myxslt私がパラ閉鎖を取得しています
<xsl:template match="p">
<para>
<xsl:apply-templates/>
</para>
</xsl:template>
<xsl:template match="fn">
<footnote>
<xsl:apply-templates/>
</footnote>
</xsl:template>
<xsl:template match="ul[@outputclass='l1']">
<itemizedlist type="•">
<xsl:apply-templates/>
</itemizedlist>
</xsl:template>
<xsl:template match="ul[@outputclass='l2']">
<itemizedlist type="•">
<xsl:apply-templates/>
</itemizedlist>
</xsl:template>
<xsl:template match="ul[@outputclass='l3']">
<itemizedlist type="•">
<xsl:apply-templates/>
</itemizedlist>
</xsl:template>
<xsl:template match="li[@outputclass='lt1']">
<item><para>
<xsl:apply-templates/>
</para></item>
</xsl:template>
<xsl:template match="li[@outputclass='lt2']">
<item><para>
<xsl:apply-templates/>
</para></item>
</xsl:template>
<xsl:template match="li[@outputclass='lt3']">
<item><para>
<xsl:apply-templates/>
</para></item>
</xsl:template>
出力サブリストの後にパラ閉じとして必要なサブリストの末尾:
<body>
<para>blahblah</para>
<itemizedlist type="•">
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
<item><para>blahblah
<itemizedlist type="•">
<item><para>blahblah</para></item>
<item><para>blahblah<footnote><p>blah</p></footnote></para></item>
<item><para>blahblah
<itemizedlist type="•">
<item><para>blahblah<footnote><p>blah</p></footnote></para></item>
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
</itemizedlist></para></item>
</itemizedlist></para></item>
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
</itemizedlist>
<para>blahblah</para>
</body>
が、閉じパラ閉鎖と項目の間でなければなりませんサブリストなどの必要な出力下図のように:1を太字として
<body>
<para>blahblah</para>
<itemizedlist type="•">
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
**<item><para>blahblah</para>**
<itemizedlist type="•">
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
**<item><para>blahblah<footnote><p>blah</p></footnote></para>**
<itemizedlist type="•">
<item><para>blahblah<footnote><p>blah</p></footnote></para></item>
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
**</itemizedlist></item>**
**</itemizedlist></item>**
<item><para>blahblah</para></item>
<item><para>blahblah</para></item>
</itemizedlist>
<para>blahblah</para>
</body>
ことが可能です。 可能であれば、私に連絡してください
ありがとうございました。私はあなたが単にli
要素の内側にapply-templates
を使用したいと思うし、その後para
要素に任意の非空白のテキストノードをラップ
はHonnen @Martinその作業をありがとうございますが、脚注要素の中1つのListItemテキストはそこに私はあなたが私のためにそれを提案することができますパラが必要です。 – User515
あなたのサンプルに 'footnote'要素はありませんので、どのような要素を'脚注 'とするのかを明確にする必要があります。 –
私は自分の質問を編集してくれますか? – User515