xsl-list
[Top] [All Lists]

Re: [xsl] text indent problem

2007-01-11 10:58:21

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>