You are confusing me. The output document has three distinct element types with
these local-names: "reg_bit", "bit_name", and "related_bit". The parent element
has a local-name of "reg_bit" and has child nodes with local-names "bit_name"
and "related_bit".
When you say, "'related_bit' with the name BitX", I get lost. The "related_bit"
element has a "linkId" attribute and a single child text node in the supplied
output example. When you write "BitX", are you referring to the value of that
child text node? Or, are you referring to the value of the text child node of
the "realted_bit"'s preceding-sibling element with the local-name "bit_name"?
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Jon Steeves <Jon_Steeves(_at_)pmc-sierra(_dot_)com>
Sent: Thu, 13 Jan 2005 13:39:51 -0800
To: "'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'"
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] xsl programming problem
Charles:
The value of the "linkId" attribute for each "related_bit" with the name BitX
should become the same as the linkID attribute of the reg_bit with the bit_name
BitX.
Jon
-----Original Message-----
From: cknell(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com]
Sent: Thursday, January 13, 2005 1:21 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] xsl programming problem
Is it your intention to set the value of the "linkId" attribute for each for
each "related_bit" element equal to the "linkId" attribute of the "reg_bit"
element that is the parent of the first instance of the "related_bit" in
document order?
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Jon Steeves <Jon_Steeves(_at_)pmc-sierra(_dot_)com>
Sent: Thu, 13 Jan 2005 10:36:43 -0800
To: "'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'"
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] xsl programming problem
Hello:
I have a XSL programming problem I haven't been able to crack.
1. Here's my xml input file
<reg_bit linkId="N101D2">
<bit_name>BIT1</bit_name>
<related_bit>BIT2</related_bit>
<related_bit>BIT3</related_bit>
</reg_bit>
<reg_bit linkId="N101D5">
<bit_name>BIT2</bit_name>
<related_bit>BIT3</related_bit>
<related_bit>BIT1</related_bit>
</reg_bit>
<reg_bit linkId="N101D9">
<bit_name>BIT3</bit_name>
<related_bit>BIT1</related_bit>
<related_bit>BIT2</related_bit>
</reg_bit>
2. After processing I want the xml to look like this:
<reg_bit linkId="N101D2">
<bit_name>BIT1</bit_name>
<related_bit linkId="N101D5">BIT2</related_bit>
<related_bit linkId="N101D9">BIT3</related_bit>
</reg_bit>
<reg_bit linkId="N101D5">
<bit_name>BIT2</bit_name>
<related_bit linkId="N101D9">BIT3</related_bit>
<related_bit linkId="N101D2">BIT1</related_bit>
</reg_bit>
<reg_bit linkId="N101D9">
<bit_name>BIT3</bit_name>
<related_bit linkId="N101D2">BIT1</related_bit>
<related_bit linkId="N101D5">BIT2</related_bit>
</reg_bit>
Anybody have any ideas?
Thanks
Jon
Jon Steeves
Technical Communications
(604) 415-6053 ext. 2139
jon_steeves(_at_)pmc-sierra(_dot_)com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--