3. Save the changes to content.xsl and close.
Adding ``Includes/paragraphs.xsl``
==================================
1. In the named area of your Format override, add a directory called, "``Includes``"
(``Formats/Dynamic HTML/Includes``, for example).
2. Download paragraphs.xsl_ and put it into the new "``Includes``" directory.
Make Changes
============
The ``paragraphs.xsl`` file that you downloaded matches a paragraph with the stylename,
*SectionQuote* and places a HTML ```` tag around it with a ``style`` attribute. This
is just an example. You will probably want to change the ``@stylename = 'SectionQuote'`` to
refer to the style you want to process.
Understanding What's Happening
==============================
The most important part of this strategy is that it works because you are creating *a better
match expression*. The default ``content.xsl`` already includes a match template for
``wwdoc:Paragraph``. In this strategy, we simply override that default template by including
one with a better match expression::
...
The XSL processor will only apply-templates once for the best match. So in this case,
if the ``stylename`` is *SectionQuote*, your match template will be applied instead of
the default template.
Notice that the ```` included in paragraphs.xsl passes along a number of
parameters. It is important to pass these parameters along if you want to pass the
processing flow back to the base Format. Keep in mind however, you might divert the flow
altogether for processing the contents of the paragraph by introducing your own mode, for
example.
Overriding Other Types of Styles
================================
You can use a similar approach for other types of styles. For example, you might repeat the
step to create a ``Includes/characters.xsl``. In such a case, the better match expression
would be for the ``wwdoc:TextRun`` element. For example::
...
However, because other such approaches might be different depending on the Format you are
using, specifics are not
covered here.
----
Another Override Example - Markers
===================================
See http://wiki.webworks.com/DevCenter/Projects/WebWorksHelp/UsingTopicIdentifiers/Discussion