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

Re: creating a string of child node names

Subject: Re: creating a string of child node names
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 3 Dec 2003 12:50:39 GMT
tags can t have children
> maybe because I had children in my tags ?

Tags can't have children (although a start tag can contain attribute markup) but
xslt can not access the tags in the original document anyway.

however that is just the standard rant against mis-use of the word tag
which has a well defined meaning, but for some strange reason is often
misused to mean element.

returning to your real point.

>  Using My real file for some reason my list ended up ended up with 
>   value="InvoiceNumber,,DespatchNoteNumber,,OrderNumber,,AccountNo,,"

If you got that using the template I posted then there is a bug
   somewhere. Most common caase of getting that would be to apply
   templates to some nodes without a name so name() returns nothing.
   This would be the white space text nodes used to indent your
   children. I had apply-templates select="*" so did not select text
   nodes, if you had select="node() or no select attribute at all, you
   would get the result you posted.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

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


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.