Xml xsl中的XSLT函数参数:select的值
我想在XSLT中对一个特定的句子进行子串,所以我使用了下面的函数,它工作得很好Xml xsl中的XSLT函数参数:select的值,xml,function,parsing,xslt,xml-parsing,Xml,Function,Parsing,Xslt,Xml Parsing,我想在XSLT中对一个特定的句子进行子串,所以我使用了下面的函数,它工作得很好 <xsl:value-of select='substring("This is My String",2,6)'/> 我怎样才能解决这个问题 就像这样: <xsl:value-of select='substring(searchpage/header/para[2]/text, 2, 6)'/> 您可以直接在substring()函数中使用XPath表达式检索到的值 注意:在XP
<xsl:value-of select='substring("This is My String",2,6)'/>
我怎样才能解决这个问题 就像这样:
<xsl:value-of select='substring(searchpage/header/para[2]/text, 2, 6)'/>
您可以直接在substring()
函数中使用XPath表达式检索到的值
注意:在XPath中,您希望在
中有一个
标记。希望您不要混淆XPathtext()
XML Parsing Error: not well-formed
<xsl:value-of select='substring(searchpage/header/para[2]/text, 2, 6)'/>