xproc / Vnext

Assembly point for all issues for a next version of XProc
1 stars 0 forks source link

Step proposal: p:text-wrap-lines #32

Open xml-project opened 2 years ago

xml-project commented 2 years ago

I think it makes sense to have a step that take a text document on source and returns a sequence of xml documents on result. Each line of source document is wrapped in an xml element. Line handling should be the same as with to other steps.

<p:text-wrap-lines wrapper="lines" number-lines="true" />

returns

<line no="1">This is the first line</line>
<line no="2">This is the second line</line>

from

This is the first line.
This is the second line.