Re: Writing array elements based on a an evaluation of
> THat and the fact that I should be evaluating > > string-length(//ACCOUNT-NO/text()) > 0 ) are you sure that is the expression that you want? There is never any need to test if the string length of a text node is > 0 as that is a constraint on the node type (in XSLT1). so the only effect of using the string-length function is to silently discard all but the first text node, test="string-length(//ACCOUNT-NO/text()) > 0" is the same as test="(//ACCOUNT-NO/text())" also it is a bit suspicious (and certainly inefficient) to start this test with // as it means that it always searches the entire document and tests the first ACCOUNT-NO that it finds, it does not depend on teh current ACCOUBT-LIST element. So within a given document this is always true or always fale so it could be a global variable, ther eis no need to work it out again each time you execure a template. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
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