This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Yet Another Flat File to Hierarchy question..


Hello all,

Sorry to bother you with this, but I have been working with the example I
found whilst trawling this list's archive, which creates a hierachy from a
flat file structure based on attribute. This example I found at
http://www.dpawson.co.uk/xsl/sect2/flatfile.html#d131e365 section 6.

My problem is this. My sttributes are numerical depicting the depth the tag
should be placed at, e.g.:

<p style="1">Top Level Heading</p>
<p style="2">Sub Heading 1</p>
<p style="2">Sub heading 2</p>
<p style="3">Sub Heading 3</p>
<p style="4">Sub Heading 4</p>
<p style="1">Another Heading</p>

I can get this to work fine by adapting the key definitions in Jeni's
algorithm.  However, in the application that I am using this, I do not
necessarily know in advance the maximum and minimum level value.  I have
implemented a min and max function to retrieve these values, but I need to
generate the key look-up tables based on these values.  Is this possible?
and if so does anyone have an idea as to how to do it?

Thanks for your time,

Paul.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]