we want Unix version of sample.xml document:
saxon -o unixsample.xml sample.xml profile.xsl "os=unix"
profiled document unixsample.xml can be processed by any DocBook tool
implementation is able to handle multiple profiling targets in one attribute:
<para os="unix;mac;win">...</para>
you can perform profiling based on several attributes in one step:
saxon -o xsample.xml sample.xml profile.xsl "os=win" "ul=beginner"