E
Eivind
Hi,
I'm creating XML-files from printed documents. According to the DTD I
have to use, there has to be pagebreaks in the XML-file. These
pagebrakes must be located whenever a new page in the printed version
occurs. This is fairly simple to accomplish.
The problem is however, the DTD states that the pagebreak cannot occur
inside paragraph-element, but must be in between them.
Is it possible, using XSLT, to end the paragraph-element before the
pagebreak, and start a new one after it?
To illustrastrate:
Illegal text block:
<para>Blah blah
<pagebreak/>
more blah blah</para>
Must become:
<para>Blah blah</para>
<pagebreak/>
<para>more blah blah</para>
I'm grateful for any help!
regards,
Eivind Andersen
I'm creating XML-files from printed documents. According to the DTD I
have to use, there has to be pagebreaks in the XML-file. These
pagebrakes must be located whenever a new page in the printed version
occurs. This is fairly simple to accomplish.
The problem is however, the DTD states that the pagebreak cannot occur
inside paragraph-element, but must be in between them.
Is it possible, using XSLT, to end the paragraph-element before the
pagebreak, and start a new one after it?
To illustrastrate:
Illegal text block:
<para>Blah blah
<pagebreak/>
more blah blah</para>
Must become:
<para>Blah blah</para>
<pagebreak/>
<para>more blah blah</para>
I'm grateful for any help!
regards,
Eivind Andersen