This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Re: XSL customization


On Sun, Apr 27, 2003 at 04:01:37PM -0700, Bob Stayton wrote:
> On Sun, Apr 27, 2003 at 03:42:14PM -0400, Sam Steingold wrote:
> > Thanks Bob, you are most helpful!
> > 
> > > * In message <20030427111042 dot A19360 at sco dot com>
> > > * On the subject of "Re: Re: XSL customization"
> > > * Sent on Sun, 27 Apr 2003 11:10:42 -0700
> > > * Honorable Bob Stayton <bobs at sco dot com> writes:
> > >
> > > > 2. I want <literal role="foo">...</literal> to transform to
> > > >    <tt role="foo">...</tt>.
> > >  
> > > <tt role="{ at role}"><xsl:apply-templates/></tt>
> > 
> > great.  why my html output now has
> >         <tt xmlns="" role="type">
> > and
> >         <i xmlns="http://www.w3.org/1999/xhtml";>

   Because your extension asked to ouptut the tt element in *no* namespace
and you have xmlns="http://www.w3.org/1999/xhtml"; in scope ! As a result
to generate what you asked for libxslt *must* unbind the default namespace
generate your <tt> in no namespace, and reactivate the default namespace in
the subtree.
   In a nutshell xsltproc does what you ask for, it's a bug in your stylesheet
apparently, make sure that in your stylesheet extension, the tt element
pertains to the XHTML namespace.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat dot com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]