0
输入:正常化空间()不工作
<article-id pub-id-type="doi">10.13031/aim.20152184755 </article-id>
<article-id pub-id-type="publisher-id">152184755 </article-id>
<article-id pub-id-type="other">Copyright</article-id>
XSLT:
<xsl:value-of select="concat('localfile:',
normalize-space(//article-id[@pub-id-type='publisher-id']), '.pdf')">
输出:
xlink:href="localfile:152184755 .pdf
(前空间也即将)
需要的输出:
xlink:href="localfile:152184755.pdf
我想从输出中删除空间。
在此先感谢
发布[mcve]并使用正确的代码格式(请参阅'{}'按钮)。 – kjhughes
我无法重现您的结果。使用Saxon 9.7,我得到'localfile:152184755.pdf'的预期输出。请详细说明您如何进行转型。 –
感谢您的指导..这不是空间。它的垃圾角色 –