Advertisement

08.06.2008 at 06:00AM PDT, ID: 23625427
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Problem nesting following sibling element

Asked by kmartin7 in Extensible Stylesheet Language Transformation (XSLT)

Tags:

I am having fits trying to grab a following sibling and nest it within the preceding sibling. I have had it work partially, but can't quite get it to work 100%. Below is a sample snippet of XML. I need to grab <ol> elements that are following siblings of an <li> element and nest it into the <li> element. So I need the following:

<body>
      <ol>
            <li>1.      Shut down equipment and lock out power in accordance with current local lockout procedure.</li>
            <li>2.      Remove conveyor side covers.</li>
            <li>3.      Turn main disconnect switch to Off position.</li>
            <li>4.      Loosen only conveyor idler rollers and O-belts being replaced. (For power roller replacement see<xref href="i0eg0211.dita#37286">Figure 1-26</xref> and<xref href="i0eg0211.dita#39450">Paragraph 1.12.3.4</xref>.)</li>
      </ol>
      <ol>
            <li>5.      Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).<ol class="proc2"><li>
                              5.      Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).</li></ol></li>
            <li>6.      To remove rollers from other than output zone right angle transfer assembly:</li>
            <ol>
                  <li>a.      Move roller slightly downward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
                  <li>b.      Carefully pull roller through O-belts and remove from bottom of conveyor (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
            </ol>
            <li>7.      To remove rollers from output zone:</li>
            <ol>
                  <li>a.      Move roller slightly upward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
                  <li>b.      Carefully pull roller through O-belts and remove from top of conveyor (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
            </ol>
            <li>8.      Loosen adjacent rollers as necessary and remove O-belts (<xref href="i0eg0211.dita#77287">Figure 1-28</xref>), moving rollers upward or downward depending on conveyor zone.</li>
      </ol>
</body>

To look like this:

<body>
      <ol>
            <li>1.      Shut down equipment and lock out power in accordance with current local lockout procedure.</li>
            <li>2.      Remove conveyor side covers.</li>
            <li>3.      Turn main disconnect switch to Off position.</li>
            <li>4.      Loosen only conveyor idler rollers and O-belts being replaced. (For power roller replacement see<xref href="i0eg0211.dita#37286">Figure 1-26</xref> and<xref href="i0eg0211.dita#39450">Paragraph 1.12.3.4</xref>.)</li>
      </ol>
      <ol>
            <li>5.      Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).<ol class="proc2"><li>
                              5.      Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).</li></ol></li>
            <li>6.      To remove rollers from other than output zone right angle transfer assembly:
            <ol>
                  <li>a.      Move roller slightly downward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
                  <li>b.      Carefully pull roller through O-belts and remove from bottom of conveyor (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
            </ol></li>
            <li>7.      To remove rollers from output zone:
            <ol>
                  <li>a.      Move roller slightly upward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
                  <li>b.      Carefully pull roller through O-belts and remove from top of conveyor (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
            </ol></li>
            <li>8.      Loosen adjacent rollers as necessary and remove O-belts (<xref href="i0eg0211.dita#77287">Figure 1-28</xref>), moving rollers upward or downward depending on conveyor zone.</li>
      </ol>
</body>

Here is the original code.

TIA

kmartin7Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
<body>
	<ol>
		<li>1.	Shut down equipment and lock out power in accordance with current local lockout procedure.</li>
		<li>2.	Remove conveyor side covers.</li>
		<li>3.	Turn main disconnect switch to Off position.</li>
		<li>4.	Loosen only conveyor idler rollers and O-belts being replaced. (For power roller replacement see<xref href="i0eg0211.dita#37286">Figure 1-26</xref> and<xref href="i0eg0211.dita#39450">Paragraph 1.12.3.4</xref>.)</li>
	</ol>
	<ol>
		<li>5.	Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).<ol class="proc2"><li>
					5.	Starting on opposite end from O-belt, grasp roller and press end of spring-loaded shaft with screwdriver or punch to release shaft from conveyor (<xref href="i0eg0211.dita#36782">Figure 1-25</xref>).</li></ol></li>
		<li>6.	To remove rollers from other than output zone right angle transfer assembly:</li>
		<ol>
			<li>a.	Move roller slightly downward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
			<li>b.	Carefully pull roller through O-belts and remove from bottom of conveyor (<xref href="i0eg0211.dita#37286">Figure 1-26</xref>).</li>
		</ol>
		<li>7.	To remove rollers from output zone:</li>
		<ol>
			<li>a.	Move roller slightly upward while pulling it free of opposite side wall mounting hole (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
			<li>b.	Carefully pull roller through O-belts and remove from top of conveyor (<xref href="i0eg0211.dita#98470">Figure 1-27</xref>).</li>
		</ol>
		<li>8.	Loosen adjacent rollers as necessary and remove O-belts (<xref href="i0eg0211.dita#77287">Figure 1-28</xref>), moving rollers upward or downward depending on conveyor zone.</li>
	</ol>
</body>
[+][-]08.06.2008 at 06:02AM PDT, ID: 22169651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:05AM PDT, ID: 22169687

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:07AM PDT, ID: 22169715

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:12AM PDT, ID: 22169776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:31AM PDT, ID: 22169965

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Extensible Stylesheet Language Transformation (XSLT)
Tags: XSLT
Sign Up Now!
Solution Provided By: Gertone
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.06.2008 at 07:16AM PDT, ID: 22170435

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 08:21AM PDT, ID: 22171239

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628