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

RE: xsl programming problem

Subject: RE: xsl programming problem
From: cknell@xxxxxxxxxx
Date: Thu, 13 Jan 2005 16:20:35 -0500
RE:  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@xxxxxxxxxx - email



-----Original Message-----
From:     Jon Steeves <Jon_Steeves@xxxxxxxxxxxxxx>
Sent:     Thu, 13 Jan 2005 10:36:43 -0800
To:       "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   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@xxxxxxxxxxxxxx

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.