У меня есть инструкция XSLT ниже.запутанное заявление при изменении версии
<xsl:value-of select="substring-after(
./title/content-style/text(),' ')" />
, когда я использовать версию стиля листа 1, как
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ntw="Number2Word.uri"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="ntw">
Но когда я изменить его до версии 2.0, как показано ниже.
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ntw="Number2Word.uri"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="ntw">
он бросает ошибку ниже
XSLT 2.0 Debugging Error: Error:
file:///C:/Users/u0138039/Desktop/Proview/HK/HKWB2014/XSLT%20and%20CSS/new_bull.xsl:202:
Wrong occurrence to match required sequence type -
Details: - XPTY0004: The supplied sequence ('2' item(s)) has
the wrong occurrence to match the sequence type xs:string ('zero or
one')
пожалуйста, дайте мне знать, что происходит прямо в XSL1.0 идет неправильно в XSL 2.0.
Благодаря