[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath problem
At 07:12 AM 4/28/2004, 'twas written:
On Wed, 28 Apr 2004 09:22:18 +0000 "Jonny Pony" <jonnypony666@xxxxxxxxxxx> wrote: ... > But I want the tree starting from an other node; e.g. the node <nina>. This will work up to a point, but since, for example, the level of indentation is determined by depth of ancestry, and that doesn't change when you process only a subtree, a few more tweaks are called for. Specifically, indentation level can be determined by counting ancestors up to and including the root of the fragment, but not further. This can be done, although in XSLT 1.0 it's a bit nasty. In most cases it'd be just as easy just to run two passes: one to extract the piece of the tree you wanted to draw, the second to draw it using Jeni's and Mike's stylesheet unchanged. If it were me, I might use Saxon's next-in-chain feature to call the ASCII-tree-draw stylesheet straight from a branch clipping stylesheet that copied over only the branch I wanted. That'd be easy, fast, and have no need for fancy XPath. There are also other ways to chain stylesheets together. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|