Auto indents in text node
Added by n nn over 8 years ago
I hope no auto indents in long and include space text node. But I want to set <xsl:output method="html" version="5.0" indent="yes" />.
Can I get result no indents in text node?
This is xml source.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is xsl source.
This is result.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
id est laborum.
This is hope result.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Please advise to me.
Thank's
Replies (2)
RE: Auto indents in text node - Added by Michael Kay over 8 years ago
You can set the serialization property saxon:line-length to a very large value, which will prevent line wrapping of any lines shorter than that limit.
RE: Auto indents in text node - Added by n nn over 8 years ago
Thank you for your reply.
I didn't know that Saxon PE has to very useful function.
I'll try to using Saxon PE!
Thanks!
Please register to reply