xsl-list
[Top] [All Lists]

RE: [xsl] XSLT transformation using counters

2011-04-26 11:42:20

ok...thanks.
 
The counter works fine but I need to move it into the <lev> rather than in the 
<heading> since multiple headings could exist withi different nested levels.
 
<lev>
 <heading>lev
 <heading>lev
 
 <lev>
   <heading>lev
   
   <lev>
     <heading>lev
   </lev>
  </lev>
</lev>
 
 
<hd1>
<hd1>
 
<hd2>
 
<hd3>
 


----------------------------------------
Date: Tue, 26 Apr 2011 18:24:50 +0200
From: Martin(_dot_)Honnen(_at_)gmx(_dot_)de
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] XSLT transformation using counters

Bubba O'Reily wrote:

ok. I'm not sure which one to use in my case. Using the below as an example:












In the output file I actually need to generate the following. In this case 
probably in
this case the> >




You can of course use
namespace="http://example.com/style";>


if you want to output elements in a certain namespace and with a certain
prefix. You might also want to declare
xmlns:PStyle="http://example.com/style";
on the xsl:stylesheet element to ensure the declaration is output on the
root of the result tree and not on each hd element.



--

Martin Honnen
http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
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: 
--~--
                                        
--~------------------------------------------------------------------
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>
--~--