[Home] [By Thread] [By Date] [Recent Entries]
Paul,
Two possibilities: In principle, I don't see why a key declaration would be impossible of the form: <xsl:key "get-next-level" match="p" use="generate-id(preceding-sibling::p[@style < current()/@style][1]"/> I've never seen the current() function in a key declarations 'use' attribute, but don't suppose (at first blush) it's illegal. Alternatively, you could write a stylesheet running over the source that would generate the "levitation" stylesheet (my name, no one else uses it, *sniff*) to run over the source. Somewhat monstrous, perhaps, but conceivable. Alternatively, if your complete data set (your entire document repository) is bounded, you could find out what the absolute min and max is, and code to that. In between would be to code for the deepest you have ever seen and have exception-trapping in your stylesheet to warn you if you ever have a document that goes deeper (necessitating some maintenance, which naturally would get more and more seldom). Cheers, Wendell At 05:41 AM 6/13/2002, you wrote: My problem is this. My sttributes are numerical depicting the depth the tag should be placed at, e.g.: ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



