我想使用XSLT選擇摘要以及HTML格式元素。這裏是一個XML的例子:使用XSLT選擇包含HTML標記的n個單詞的摘要
<PUBLDES>The <IT>European Journal of Cancer (including EJC Supplements),</IT>
is an international comprehensive oncology journal that publishes original
research, editorial comments, review articles and news on experimental oncology,
clinical oncology (medical, paediatric, radiation, surgical), translational
oncology, and on cancer epidemiology and prevention. The Journal now has online
submission for authors. Please submit manuscripts at
<SURL>http://ees.elsevier.com/ejc</SURL> and follow the instructions on the
site.<P/>
The <IT>European Journal of Cancer (including EJC Supplements)</IT> is the
official Journal of the European Organisation for Research and Treatment
of Cancer (EORTC), the European CanCer Organisation (ECCO), the European
Association for Cancer Research (EACR), the the European Society of Breast
Cancer Specialists (EUSOMA) and the European School of Oncology (ESO). <P/>
Supplements to the <IT>European Journal of Cancer</IT> are published under
the title <IT>EJC Supplements</IT> (ISSN 1359-6349). All subscribers to
<IT>European Journal of Cancer</IT> automatically receive this publication.<P/>
To access the latest tables of contents, abstracts and full-text articles
from <IT>EJC</IT>, including Articles-in-Press, please visit <URL>
<HREF>http://www.sciencedirect.com/science/journal/09598049</HREF>
<HTXT>ScienceDirect</HTXT>
</URL>.</PUBLDES>
如何從中獲得45個單詞以及其中的HTML標籤。當我使用substring()
或concat()
它刪除標籤(如<IT>
等)。
哪一種語言ru使用? – zapping 2010-01-27 08:04:02
@zapping:標題說XSLT已經! – kennytm 2010-01-27 08:17:30
你能使用XSLT2.0還是隻使用XSLT1.0? – 2010-01-27 08:50:04