【发布时间】:2016-03-22 07:11:21
【问题描述】:
我是 XSL 的新手。
我有一个 XHTML 文件,我只希望 <section id="ch01lev2sec01"> 元素和该元素的第一段成为由 Unicode 代码点 &#X2003; 分隔的一行。
输入是:
<section class="bodymatter" id="ch01body">
<section id="ch01lev1sec01">
<header>
<h1 class="title">Assumptions Underlying Content Teaching</h1>
</header>
<p>Most content area teachers assume it is their responsibility to cover their subject matter in a timely, accurate, and effective manner (<a class="biblioref" href="REF.xhtml#ch01bib033">Alvermann & Moore, 1991</a>; <a class="biblioref" href="REF.xhtml#ch01bib034">Moore, 1996</a>). They also assume, for the most part, that textbooks are necessary for teaching and learning content (<a class="biblioref" href="REF.xhtml#ch01bib035">Wade & Moje, 2000</a>). Finally, content area teachers tend to assume that by the time students enter middle and/or high school, they are strategic in their approach to reading and learning (<a class="biblioref" href="REF.xhtml#ch01bib036">Alvermann & Nealy, 2004</a>). These assumptions influence teachers’ instructional decision making, their use of textbooks, and their perceptions of active and independent readers.</p>
<section id="ch01lev2sec01">
<header>
<h1 class="title">Subject Matter</h1>
</header>
<p>The historical</p>
</section>
</section>
</section>
所需的输出是:
<section class="bodymatter" id="ch01body">
<section id="ch01lev1sec01">
<header>
<h1 class="title">Assumptions Underlying Content Teaching</h1>
</header>
<p>Most content area teachers assume it is their responsibility to cover their subject matter in a timely, accurate, and effective manner (<a class="biblioref" href="REF.xhtml#ch01bib033">Alvermann & Moore, 1991</a>; <a class="biblioref" href="REF.xhtml#ch01bib034">Moore, 1996</a>). They also assume, for the most part, that textbooks are necessary for teaching and learning content (<a class="biblioref" href="REF.xhtml#ch01bib035">Wade & Moje, 2000</a>). Finally, content area teachers tend to assume that by the time students enter middle and/or high school, they are strategic in their approach to reading and learning (<a class="biblioref" href="REF.xhtml#ch01bib036">Alvermann & Nealy, 2004</a>). These assumptions influence teachers’ instructional decision making, their use of textbooks, and their perceptions of active and independent readers.</p>
<section id="ch01lev2sec01">
<header>
<h1 class="title">Subject Matter</h1>
</header> 
<p>The historical</p>
</section>
</section>
</section>
【问题讨论】:
-
发布您到目前为止所尝试的内容。 SO 不是为您编写代码。
-
无论哪种方式,XML 在语义上都是相同的。你确定你需要这样安排吗?这是XY Problem 的示例吗?
-
是的,实际上我们已经导出了 XML 文件,然后在 InDesign 中流动。