Hey Todd:
Well, you hit it that that's not the best format for XML to be in,
but....
Try out:
<xsl:value-of select="normalize-space(substring-before(group, key))"/>
HTH!
Dion
-----Original Message-----
From: Todd Binder [mailto:todd_binder@xxxxxxxxxxx]
Sent: Tuesday, November 12, 2002 1:34 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: text values of nodes
I have some XML (unfortunately I did not generate it, else I would have
created it in a manner that was easier to transform) that is extremely
nested, and am having problems extracting elements of it vis XSL
can I grab just the group value (abc)?
when I try to grab <xsl:value-of select="group"/> I get back all the
values
contained within the entire GROUP node (abc 8873 X32 20020430 C 6 P)
is there a way to work with this poorly formed XML?
<group>abc
<key>8873
<idcode>X32
<date>20020430
<rectype>C
<IST>6</IST>
<PRIMISS>P</PRIMISS>
</rectype>
</date>
</idcode>
</key>
</group>
Todd Binder
todd_binder@xxxxxxxxxxx
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- text values of nodes
- Todd Binder - Tue, 12 Nov 2002 16:29:44 -0500 (EST)
- Ritu - Tue, 12 Nov 2002 16:43:21 -0500 (EST)
- David Carlisle - Tue, 12 Nov 2002 17:51:36 -0500 (EST)
- <Possible follow-ups>
- Dion Houston - Tue, 12 Nov 2002 16:39:21 -0500 (EST) <=
- Todd Binder - Tue, 12 Nov 2002 17:04:13 -0500 (EST)
- Joerg Heinicke - Tue, 12 Nov 2002 17:18:07 -0500 (EST)
- Ritu - Tue, 12 Nov 2002 17:25:54 -0500 (EST)
|
|