[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT 2.0 empty string
> The select expression yields a node-sequence, the as > expression requires atomic values, so XSLT invokes > atomization. The result of atomizing an empty node-sequence > is an empty sequence of strings. The confusion comes from this: <abc/> And a variable that selects <abc>: <xsl:variable name="abc" select="abc" as="xs:string?"/> And then use the test: $abc = '' The result is true. However, if <abc/> is not present, the result is false. So, what is the difference between the atomization process when the node <abc/> is present but empty, and when it's not there?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|