0
我需要測試for-each-group中2個可能標記中的1個。這可能嗎?什麼是正確的語法?在組開始時測試2個條件 - 在<xsl:for-each-group>中測試
我試過「||」但從解析器中得到一個錯誤。我在Oxygen 12.1中使用Saxon PE 9.3。
Ex。
<xsl:param name="elements" as="element()*"/>
<xsl:for-each-group select="$elements"
group-starting-with="condition or condition" >
<xsl:for-each-group>
,我認爲這是你在問什麼,但如果你問實際使用布爾條件,使用'group-starting-with =「node()[condition1 or condition2]」' – LarsH
不,這正是我所需要的。我其實剛剛在這個主題中找到了答案。 http://stackoverflow.com/questions/2219127/can-i-use-and-operator-in-xsl-for-each感謝您的幫助! – Jeff