用HTML中的多个引用标记文本块

时间:2018-08-21 23:54:47

标签: html semantic-markup

我正在进行一项雄心勃勃的计划,从宪法开始在我国组织法律。

文本主体排列在称为 articles 的短文本段中,并且可以通过宪法修正案修改每篇文章。

想法是,当某人突出显示某篇文章时,他们会获得创建此文本块的所有宪法修订的摘要。


问题:划定并引用特定块的最佳方法是什么?

例如,替换span标签的最佳方法是什么:

<p>
<span data-ammendment-id="1">
<span data-ammendment-id="2">
10A.    Right to fair trial:
For the determination of his civil rights and obligations or in any criminal charge against him a person shall be entitled to a fair trial and due process.
</span></span>
</p>

<p>
<span data-ammendment-id="1">
11  Slavery, forced labour, etc. prohibited
(1) Slavery is non-existent and forbidden and no law shall permit or facilitate its introduction into Pakistan in any form.
(2) All forms of forced labour and traffic in human beings are prohibited.
(3) No child below the age of fourteen years shall be engaged in any factory or mine or any other hazardous employment.
(4) Nothing in this Article shall be deemed to affect compulsory service:-
  (a)   by any person undergoing punishment for an offence against any law; or
  (b)   required by any law for public purpose provided that no compulsory service shall be of a cruel nature or incompatible with human dignity.
</span>
</p>

这些标记在这里无效:

  • cite:没有提供划分文本块的方法
  • detailssummary:在这里不合适,因为我想在这里引用适当的修正案
  • blockquotecite:这是完美的,除了这是原始文档本身的标记,因此引用文本不恰当。尤其是由于某些修正是迭代性的(“在X行用THAT更改此内容”)而不是声明性的(“用Y替换X条”)
  • delins:不幸的是,最好在diff中使用它,而文档的最终版本不是。它必须像纯文本一样阅读。

0 个答案:

没有答案