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 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";>
> 
> since I already have the
>         <html xmlns="http://www.w3.org/1999/xhtml";>
> header, I think those xmlns="" are superfluous.
> is there a way to get rid of them?

Some versions of xsltproc output more namespace
attributes than others.
But I wonder if that one is coming from the fact that
role is not a valid attribute of <tt>?

> > <xsl:template match="comment()">
> >   <xsl:comment><xsl:value-of select="."/></xsl:comment>
> > </xsl:template>
> 
> thanks!  it it possible to put each comment on a separate line?
> well, I guess, sed(1) can do that...
> 
> new stuff:
> 
> 1. epigraph ::= (attribution?,((formalpara|para|simpara)|literallayout)+)
>    xhtml/block.xsl keeps only attribution and para.
>    this is probably just a bug...

Yes, that bug is fixed in CVS.
 
> 2. The navigation header lists at most two levels up.
>    I would rather have all levels, up the the book title and subtitle.
>    E.g., for section 1.2.3.4.5, I would like to see
> 
>                 section 1.2.3.4 title
>                 section 1.2.3 title
>                 section 1.2 title
>                 chapter 1 title
>                 part title
>                 book subtitle
>                 book title
> 
>    hmm... :-) on the second thought...

Yes, that's a lot.  8^)
 
> > You might want to get a good XSLT reference to help with some of these
> > syntax issues.  I use Micheal Kay's XSLT Programmer's Reference (2nd
> > ed.).
> 
> is it available on-line?

No.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs at sco dot com

---------------------------------------------------------------------
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]