First page Back Continue Last page Graphics
Use cases: why would I use XSH?
Fix invalid documents
- Typical DocBook error:
- <itemizedlist>
- <listitem>Item 1</listitem>
- <listitem>Item 2</listitem>
- </itemizedlist>
- should read:
- <itemizedlist>
- <listitem><para>Item 1<para></listitem>
- <listitem><para>Item 1<para></listitem>
- </itemizedlist>
Cure?
wrap --inner para //itemizedlist/listitem[normalize-space(text()!='')]