You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Chris Gokey <cg...@hydrogen.stx.com> on 2000/03/13 00:55:31 UTC
indenting
Hi everyone,
I am trying to figure out how to indent text using XSLT. Consider this
XML document:
<Book>
<Title> XSL transformations </Title>
<Summary>
This is a block of text
that gives a full summary
of a book that describes
how to use XSLT.
</Summary>
</Book>
Consider this XSL file:
?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="Book">
Book_Title: <xsl:value-of select="Entry_ID"/>
Summary:
<xsl:value-of select="Summary"/>
</xsl:template>
</xsl:stylesheet>
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