>> Hi Stuart,
>>
>> I've found this to be a bit of a pain too. I understand why it needs
>> to have all the linked objects in the one place but what about adding
>> another attribute for embedded objects, say embed-local-stylesheet and
>> a line after the include1 as shown.
>>
>> include1::{stylesheet}[]
>> include::{embed-local-stylesheet}[]
>>
>> Obviously as I said this won't work for linked stylesheets, but thats
>> why the embed in the rather-long-name.
>
> I don't understand.
>
> Cheers, Stuart
>
Hmmm, yes, well, note to self, don't write posts late at night. :-)
Lets see if I can do better.
As I understand it, if stylesheets are linked they need to be in the
output directory or in stylesdir below that directory by the time the
browser reads the page. It doesn't matter where it is during Asciidoc
program run since its not read.
As I understand it, if stylesheets are embedded they need to be read
by Asciidoc and can be in the system directory or in stylesdir below
that directory or in an absolute path. The base directory is magic in
the asciidoc include1 code, not configurable.
So embedded stylesheets either need to be in an unwritable system
directory or specified as an absolute path, which is a pain when
setting it in the document source.
What I was trying to suggest was that there be another sytlesheet
attribute for embedded stylesheets that is relative to the document
source directory, and I was trying to suggest that the normal include
which doesn't base everything in the system directory be used, but now
being awake I realise that thats no good because of attribute
substitutions, there are lots of {} in CSS files.
So maybe we need an include2 that does the same as include1 but takes
files to be relative to the source directory instead of the system
directory.
Given the complexity of include1 processing (via include1 attribute
etc) I think I better leave that to you.
Cheers
Lex
>
>>
>> Cheers
>> Lex
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.