Next in thread → Next in month →

Re: [docbook-apps] Namespace aware styles

From
Michael(tm) Smith <>
Date
2006-04-19T05:35:44+00:00
ID
Thread
Re: [docbook-apps] Namespace aware styles
Elliotte Harold <> 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.

  --Mike
Next in thread → Next in month →