Subject: Re: [xsl] Condition Based Count of Sections From: "Ragulf Pickaxe" <ragulf.pickaxe@xxxxxxxxx> Date: Wed, 18 Apr 2007 12:00:37 +0200 |
I am sorry, I have tried reading your explanation several times now, and I have absolutely no idea what you are saying. Remember that we as readers have no prior involvement in your project, so many things that are matter of fact to you are not so for the reader.
I guess that when you write "generate <Section> for the <Chapter>" that you are talking about generating the attributes, that has been the focus of the thread as a whole. As far as I can see, there is no creation of elements any place.
As for chapter not having any contens, are you saying that <chapter> <p>..</p> <sec1> <p>..</p> </sect1> </chapter> is possible?
A couple of examples of the size of last example, both input and desired output, that are different, and explanation of why they differ will go a long way to helping me know.
I might have overlooked something. Others might better understand what you need and help you achieve this.
Regards, Ragulf Pickaxe :-)
Thanks for your effords!!! I want a count for all <chapter><sect1><sect2><sect3> with their level but a rule should be devised that will prevent empty section/chapter being generated. For example, the following XML would generate <section> for the <chapter> as they have no content. This is something we need to avoid when the XSLT is devised, perhaps by combining lower content into an empty section. In the example below, this would mean that <sect1> would become content of the <chapter>. <chapter> < ti>.. </ti> <sect1> <p>...</p> </sect1> <sect1> <p>..</p> </sect1>
In another words count muse be 2 not 3 because <chapter> does not have data
thanks for your effords again!!! JSR
At 10:00 AM 4/18/2007 +0200, you wrote: >Hi again J. S. Rawat, > >Looking at your required output again, it seems that you do not want >to distinguish between sect elements containing child p elements and >not containing them, but only whether the sect1 element is the first >of that given chapter. > >You should the remove the [p]'s from your match condition. > >Regards, >Ragulf Pickaxe :-)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Condition Based Count of , J. S. Rawat | Thread | RE: [xsl] Condition Based Count of , Michael Kay |
Re: [xsl] Condition Based Count of , J. S. Rawat | Date | [xsl] Xmllint and xsltproc standard, list |
Month |