From xalan-dev Mon Mar 13 15:07:07 2000
From: Paul_Dick () lotus ! com
Date: Mon, 13 Mar 2000 15:07:07 +0000
To: xalan-dev
Subject: Re: indenting
X-MARC-Message: https://marc.info/?l=xalan-dev&m=86952099710232
Chris,
XSLT is not really the tool for this. Remember XSLT is the transform
engine of xsl. The Formatting Objects portion of the spec is probably what
would be the better candidate for getting this type of indentation.
The indent attribute of the xsl:output statement is used for adding
additional whitespace to the output tree, not really specific elements.
That said the desired behavior can probably be achieved, by indenting the
data with in the source .xml file. The follow files produced what you
wanted.
XML source:
XSL transformations
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
Stylesheet:
Book_Title:
Summary:
Produced:
Book_Title:
Summary:
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
Paul
Chris Gokey
cc: (bcc: Paul Dick/CAM/Lotus)
Sent by: Subject: indenting
cgokey@equinox.sh
aysnet.com
03/12/2000 06:55
PM
Please respond to
xalan-dev
Hi everyone,
I am trying to figure out how to indent text using XSLT. Consider this
XML document:
XSL transformations
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
Consider this XSL file:
?xml version="1.0"?>
Book_Title:
Summary:
Now, the output looks like this:
Book_Title: XSL Transformations
Summary:
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
And this is what I'd like:
Book_Title: XSL Transformations
Summary:
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
How can I tell my style sheet to indent each line?
Thanks,
Chris
--
Christopher D. Gokey, Raytheon ITSS, NASA/GCMD
18 Martin Road, Shelburne Falls, MA 01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov