[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Matching " within a variable as:item()*

Subject: Re: Matching " within a variable as:item()*
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Jan 2010 13:39:50 GMT
Re:  Matching " within a variable as:item()*
It's not possible to reconstruct any example from the posted fragments
but one observation: these are not equivalent:


              <xsl:text>"</xsl:text>
            <xsl:value-of select="'ZXZX'"/>
            <xsl:text>"</xsl:text>


          <xsl:text>"ZXZX"</xsl:text>


The first makes a sequence of three text nodes, with values ", ZXZX and "

The second makes a single text node, with value "ZXZX"


in some circumstances (for example if you copy these to an element in
the result tree ) these things are equivalent, as text nodes are merged,
but in other cases, for example if you directly extract nodes such as
$VariableAsItem[1] then you will get different results.

The variable name VariableAsItem is a bit misleading as it suggests a
single item but it is typed as item()* allowing an arbitrary sequence.

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.