Re: XSL customization

From
Sam Steingold <>
Date
2003-04-27T19:31:23+00:00
ID
Thread
Re: XSL customization
Thanks Bob, you are most helpful!

> * In message <>
> * On the subject of "Re: Re: XSL customization"
> * Sent on Sun, 27 Apr 2003 11:10:42 -0700
> * Honorable Bob Stayton <> writes:
>
> > 2. I want <literal role="foo">...</literal> to transform to
> >    <tt role="foo">...</tt>.
>  
> <tt role="{@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?

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

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

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

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Bus error -- please leave by the rear door.