在xml样式表中,“strip-space”选择所有元素(elements =“*”),但“preserve-space”选择部分元素,样式表的两个根元素是否相互冲突?
如何解析属于“条带空间”和“保留空间”的元素?比如“abbrev”、“abbrev_journal_title”?
<xsl:strip-space elements="*"/>
<!-- Space is preserved in all elements allowing #PCDATA -->
<xsl:preserve-space
elements="abbrev abbrev-journal-title access-date addr-line aff
alt-text alt-title article-id article-title attrib
award-id bold chapter-title chem-struct collab comment
compound-kwd-part conf-acronym conf-date conf-loc conf-name
conf-num conf-sponsor conf-theme copyright-holder
copyright-statement copyright-year corresp country
date-in-citation day def-head degrees disp-formula
edition elocation-id email etal ext-link fax fpage
funding-source funding-statement given-names glyph-data gov
inline-formula inline-supplementary-material institution
isbn issn issue issue-id issue-part issue-sponsor
issue-title italic journal-id journal-subtitle
journal-title kwd label license-p long-desc lpage
meta-name meta-value mixed-citation monospace month
named-content object-id on-behalf-of overline p
page-range part-title patent phone prefix preformat
price principal-award-recipient principal-investigator
product pub-id publisher-loc publisher-name
related-article related-object role roman sans-serif
sc season self-uri series series-text series-title
sig sig-block size source speaker std strike
string-conf string-date string-name styled-content sub
subject subtitle suffix sup supplement surname target
td term term-head tex-math textual-form th time-stamp
title trans-source trans-subtitle trans-title underline
unstructured-kwd-group uri verse-line volume volume-id
volume-series x xref year
mml:annotation mml:ci mml:cn mml:csymbol mml:mi mml:mn
mml:mo mml:ms mml:mtext"/>