
July 27th, 2004, 08:47 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 14
Time spent in forums: 44 m 38 sec
Reputation Power: 0
|
|
|
Padding of string with nodes
I have som xml that looks like this:
Code:
<text>foo bar text <bold>bold text</bold> more text<url><link>http://foo.com</link><title>Foobar</title></url> text and more text<bold>more nodes</bold></text>
I want to construct a string in xsl with a specific amount of characters while not destroying the nodes in the text.
The string should look like this:
Code:
<text>foo bar text <bold>bold text</bold> more text <url><link>http://foo.com</link><title>Foobar</title></url> text a</text>
So the only characters that is countet is the characters directly in the <text> node and the <bold> and the <title> nodes.
I hope you get the point. But how do i do that?
|