[Home] [By Thread] [By Date] [Recent Entries]
"JaxLive":
What you're describing (whatever your name is!) may or may not be possible, depending on how regular your data is. The reason it's so difficult to "see to it that the paragraph structure is not lost" is that, in the code you present, it's not there to begin with: There's no indication here of any paragraph breaks. A human reader might infer there to be a paragraph break, based on the existence of whitespace. (On the other hand, looking at the prose, one might infer several paragraphs!) But whitespace isn't much to go on: it's notoriously undependable. Without markup to delimit the starts and ends of paragraphs, no XML parser will see any structure there at all. If your data is regular enough (that is, if all "paragraph breaks" appear exactly the same way, say with a &#A; [line feed] character), you can run a recursive template over the text node content of the element to break it up. If you're sure your data is regular enough to support it, look in the XSL FAQ for recursive solutions to this kind of thing (...or ask...). If it's not this regular, you're hosed. Good luck, whatever-your-name-is ... Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



