Click here to Skip to main content
15,885,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai, friends,

I do some xsl fo conversion XML TO WORD
this is my xml code,

XML
<item manual-label="3.44">
  <para>para 3.44</para>
</item>
<item manual-label="3.45">
  <para identifier="VPDJTO903903221">
   <list identifier="TKABFM284589889" list-style="Ordered">
     <item identifier="ITOEHY309549426">
       <para identifier="XCQFZM782154886">PARA 1</cl:para>
     </item>
     <item identifier="ITOEHY309549426">
       <para identifier="XCQFZM782154886">PARA 2</cl:para>
     </item>
   </list>
  </para>
</item>


in this each item have attribute(manual-label) value , when I set the attribute value as list item label, I apply style for all para

I got the result as

style_name 3.44 para 3.44

Normal 3.45

style_name 1 PARA 1

style_name 2 PARA 2



how to apply the style name when the para with out PCDATA , and contains with child node
Posted
Comments
John C Rayan 27-Feb-15 14:26pm    
Can you post your XML without your PCDATA and XSL

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900