Hi David,

Its been interesting to see your thought process, but ...

On 15 February 2013 02:12, David Favor <[email protected]> wrote:
> This gets back into the jam of a mismatch between how a2x and asciidoc work.

There is no "mismatch" between asciidoc and a2x, asciidoc produced
html has the classes as you found, the docbook produced by asciidoc
when run by a2x has role= on it.  The problem is the XSL toolchain
doesn't do anything with the role attributes (that I know of).

>
> I have to use a2x to produce a non-javascript (clickable) TOC.
>
> So I guess the real logic to be added is back to a generic .xsl transform to
> move role=name into the html file.

Yes, thats what I thought you were doing, adding XSL to transform
role= to class attributes the same as the html produced by asciidoc
directly. See the last para on my first reply.

>
> Of maybe a better way is to create a post processor to implement an .html
> file theming system like is available via asciidoc.
>
> So the key items here are...
>
> 1) how to add role= to <tr> and <td> tags

It is added to the <table>, isn't that what you want, the whole thing yellow?

>
> 2) how to transform tags like <informaltable role="standout-role"
> frame="all" rowsep="1" colsep="1"> from the .xml file into the .html file.

And thats the job of the XSL I thought you were adding :)

You can't "post process" after XSLT processing because the role= no
longer exists so there is nothing to process.  You can't pre-process
before XSL processing because the XSL would remove whatever you put in
it.

You didn't read the sagehill well enough, see
http://sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues
just return the role as the value.

Cheers
Lex

>
> Let me know how you'd approach this.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to