This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Conditional variable assignment with node-set as value


Hi,

  I uses Saxon6.0.2 as XSLT processor.
  I currently have a need to use conditional variable
assignment with node-set as value.  I tried to use
saxon:node-set, but still gets the error:
At XSLT 1.0, conversion of a result tree fragment to a
node-set is not allowed.
  My XSLT code looks like:
<xsl:variable name="extended-attrs-bid">
<xsl:choose>
<xsl:when
test="normalize-space(RFQDomainAttributeDefinition)">
<xsl:value-of
select="saxon:node-set(RFQDomainAttributeDefinition[@Domain
= 'lbid']/ExtendedAttributeDefinition)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="saxon:node-set(Bid/ExtendedAttribute[generate-id()
= generate-id(key('extended-attrs-bid-index',
@ExtendedAttributeCode))])" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
  How to conditionally assign the node-set value I
needed?

Much thanks,
Xiaocun

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]