XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have "area text" that can be in one or multiple records in the database (and therefore in XML node elements).
I can use the code below to output this text line by line, but what I would really like to do is concatenate it into one long string and then output it, wrapping based on the available width.
Current Output:
Anatomy and Physiology needs to have been completed at MSU
within the last 5 years with a minimum grade of 2.0.
For an equivalent transfer of BIO 227 and BIO 228 from
another institution, students need to have completed a full
year of Anatomy and Physiology and one semester of
Microbiology within the last 5 years with a grade of 2.5 or
better.
Desired Output:
Anatomy and Physiology needs to have been completed at MSU within the last 5 years with a minimum grade of 2.0. For an equivalent transfer of BIO 227 and BIO 228 from another institution, students need to have completed a full year of Anatomy and Physiology and one semester of Microbiology within the last 5 years with a grade of 2.5 or better.
I get the same results - each element is printed on a separate line.
I was hoping there was a way to print each area_text element, a space, and then the next area_text element, wrapping as needed.