|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to get string value of element node without ch
On Fri, 14 Mar 2003, Craig Kattner wrote: > I'm sure the answer is obvious, but I can't seem to find it. > > I have the following XML: > <?xml version="1.0" encoding="UTF-8" ?> > <switches> > <finishes> > <finish> > Almond Decorative > <hold>no</hold> > </finish> > <finish> > Commercial > <hold>no</hold> > <hold>yes</hold> > </finish> > <finish> > Ivory Decorative > <hold>no</hold> > <hold>yes</hold> > </finish> > <finish> > White Decorative > <hold>no</hold> > </finish> > </finishes> > </switches> while others much smarter than i will undoubtedly give you a solution, i'd actually recommend redesigning your XML. it seems unwieldy to have a plain text node "Almond Decorative" as a child of <finish>, mixed in with legitimate child elements <hold>. why not give that field an element name? then you can select it explicitly by that element name, and your problem would go away. rday XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








