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

Re: text indent problem

Subject: Re: text indent problem
From: "Oliver Müller" <oemueller@xxxxxxxxx>
Date: Fri, 12 Jan 2007 01:30:42 +0100
Re:  text indent problem
thanks :)
outstanding.

Olli

2007/1/11, David Carlisle <davidc@xxxxxxxxx>:

me> <block> me> Some text, no indent, first paragraph, </block> me> me> me> ie all blocks except the first indented, which was, i thought, what you me> wanted.

you did want that block not indented, but you didn't want it to lose all
its content except the first node, which was i now recall the point of
my botched change.

use="generate-id((preceding-sibling::absatz[1]|../node()[1])[last()])"


then, finally:



$ saxon indent2.xml indent2.xsl <?xml version="1.0" encoding="utf-8"?> ========= section 1 ===

<block>
Some text, no indent, first paragraph, <bold>bold text</bold> and
<italic>italicized</italic> text
</block>
<block indent="2em">
<italic>some</italic> other text, with indent
</block>
<block indent="2em">
<bold>yet</bold> other text with <bold>bold text</bold> and <italic>italicized</italic> text
and <bold><italic>bold italic</italic></bold> text
</block>
<block indent="2em">
again other text
</block>


sorry about that.


David

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.