xsl-list
[Top] [All Lists]

[xsl] Checking on the existence of tail text?

2009-02-14 05:32:51
Hi,
I have a question about the check on a node tail text.

How can de matching template of <h2> see if there is
nont-whitespace text between </h1> and <h2>, e.g.
the difference between

<h1>Abcd</h1> a text here <h2>Xyz</h2>

<h1>Abcd</h1><!-- no text here --><h2>Xyz</h2>

And the extended question, how van the h2-matching
template see the same thing when there is another
tag inbetween that get ignored in the output:

<h1>Abcd</h1> a text here<ignored/> another text here <h2>Xyz</h2>

<h1>Abcd</h1><!-- no text here --><ignored/><!-- no text here -- 
<<h2>Xyz</h2>

This information is needed to know that white space to generate
in output for PDF, where the combination of different heading
must generate different amounts of leading.

Kind regards,
Petr van Blokland
buro(_at_)petr(_dot_)com




______________________________________________________________________
This email has been scanned by the McAfee® Email Security System.
For more information please visit http://www.mcafee.com
______________________________________________________________________


--~------------------------------------------------------------------
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>
--~--