OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Namespace aware styles

Elliotte Harold <elharo@metalab.unc.edu> writes:

> When I'm writing a customization layer for DocBook 5 that replaces some 
> existing template rules, should I write them for the namespaced or 
> non-namespaced names? The namespace stripping has me thoroughly 
> confused. For instance, shoudl I write:
>   <xsl:template match="doc:sect1/doc:info/doc:legalnotice" />
> or
>   <xsl:template match="sect1/info/legalnotice" />

The latter. The stylesheets are basically not namespace-aware.
They do the namespace-stripping as a first pass, then reprocess
the stripped document. So by the time your customizations are
applied, the stylesheets will have already done the
namespace-stripping on your doc instance.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]