public class ProfilingConditionalTextProvider
Profiling/Conditional Text is a way to mark elements meant to appear in some renditions
of the document, but not in others. It differs from one variant of the document to another,
while unconditional elements appear in all document versions.
This class provides custom support for Profiling/Conditional Text.
public java.lang.String getXMLFragmentForContentProfiling(int startOffset,
This method is used when the document content between startOffset and endOffset
must be profiled. The returned XML fragment is used to wrap the content included in the
given offset interval.
The first leaf of the XML fragment will be the destination of the text to surround.
The profiling attributes will be set on the first element of the XML fragment.
startOffset - The start offset of the document content that must be profiled.
endOffset - The end offset of the document content that must be profiled.
authorAccess - Access class to the author functions.
The XML fragment to wrap the profiled document content with.
If this fragment is null the interval will not be profiled.