[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Embeding application specific information within Docbook
Hi Tom,
I don't think validation is an issue, since
the XSLT processors don't take the time to validate against the DTD.
Wellformedness, however, is required in order to process the content. You
should be able to put the content any place that is well formed.
If you want to process your content in
document order, then you'll want to put it someplace where a general
apply-templates element is used, so that the stylesheet can apply your custom
templates. For example, the templates with match="book" and
match="article" both use an apply-templates to handle all of their content, so
you should be able to put your content just inside such root elements. Of
course, it will be processed in document order, which may or may not be what you
want.
If you intend to process your special
content by accessing the data from other templates, then you'll probably want to
turn off normal document order processing and use a mode:
<xsl:template
match="config">
<!-- no-op in normal mode
-->
</xsl:template>
<xsl:template match="config"
mode="configuration">
...
</xsl:template>
Then you use the configuration mode when
you need to access the data, which you can select with an XPath.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]