Subject: RE: [xsl] DOM node? From: "Michael Kay" <mhk@xxxxxxxxx> Date: Wed, 10 Mar 2004 11:51:39 -0000 |
"|" is a union operator that forms the union of two node-sets, it cannot be applied to two strings. Your XSLT processor, in talking about "DOM Nodes" is using very confusing terminology in its error messages. The requirement (in XSLT 1.0) is that the operands should be node-sets. In 2.0 you can write this predicate as [inscope/@key=('Multiuser', 'Application')] Michael Kay # -----Original Message----- # From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl- # list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of james walker # Sent: 10 March 2004 10:08 # To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx # Subject: [xsl] DOM node? # # When i created a select statement like this: # # <xsl:apply-templates # select="allrequirements/requirement[inscope/@key=('Multiuser' | # 'Application')]" /> # # and tried to perform a translation, i got an error saying "expression does # not return a DOM node", so i tried: # # <xsl:apply-templates # select="allrequirements/requirement[inscope/@key=('Multiuser' | # 'Application')] | # allrequirements/requirement[inscope/@key=('Application')]" # /> # # and itworked, what is a DOM node? and why did my code work? the only # reason # i tried it was because i have seen a for-each statement where many files # are # selected using the "|" operator. # # _________________________________________________________________ # It's fast, it's easy and it's free. Get MSN Messenger today! # http://www.msn.co.uk/messenger # # # XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] DOM node?, David Carlisle | Thread | [xsl] value-of or apply-templates, Richard Lewis |
Re: [xsl] XPath to get value of xml, Munna D | Date | [xsl] value-of or apply-templates, Richard Lewis |
Month |