[prev in list] [next in list] [prev in thread] [next in thread]
List: xalan-dev
Subject: indenting
From: Chris Gokey <cgokey () hydrogen ! stx ! com>
Date: 2000-03-12 23:55:31
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic