[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Possibly Newbie questions...

Subject: Re: Possibly Newbie questions...
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Mon, 14 Feb 2000 22:09:07 -0500
pc outline
Adam Haberlach wrote:
> 
>         I'm looking for an example of how to create the .xml/.xsl
> for an outline-style document.  Right now I'm using a lot of <t1>
> tags which get converted to <H1> tags by the .xsl, but I would
> rather have something that handles the nesting on the fly so
> I can demote/promote items more easily.

This is actually a little bit tricky in pure XSL.  Back along a bit, I
put together an outliner package to experiment with XSL processing of
recursive lists of elements of various kinds.  I got it working, by hook
or by crook...

In case it's of interest, I attach a zipped file which includes the DTD,
a demo which is also documentation, the XSL script and a CSS file which
all put together make a pretty functional XML/XSL outliner (I call it XO
in case it matters).  I hope I'll have time to go back to it one day and
add a GUI, but it's not high on my list.  Perhaps next summer.

>         I'm also interested in generating the numbers for headings
> on the fly.

You can do this with xsl:number.  You can generate numbers for list
items with xsl:number as well, but in the attached outliner I do it with
CSS for no better reason than that I was experimenting with CSS back
then.
 
>         And I'm also looking for a way to break a document into
> small pieces (so different team members can work with them) and
> have them integrated into one document on the fly.

You can easily integrate documents either by using the XML SYSTEM entity
method or by using XSL's document() function.

 Steve "I miss PC-Outline" Tinney

Attachment: xo.zip
Description: Zip compressed data

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.