Re: access to :style-sheet from <lisp> tag

Jim Ottaway <[email protected]> Tue, 09 Oct 2007 20:31:07 +0100
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
[apologies to Seb for accidentally sending this to him personally]

>>>>> Seb  <[email protected]> writes:

> Hi,
> If we have a style defined:

> (muse-derive-style "my-xhtml" "xhtml"
[+]
> 		   :style-sheet "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\"
>                                 href=\"include/style.css\" />")

> and we want to write a header file for the projects using this derived
> style, what variable can be used inside a <lisp> tag to insert the
> contents of :style-sheet above?  For the projects using the xhtml style, I
> can use <lisp>muse-xhtml-style-sheet</lisp>, but what's the variable for a
> derived style?  Thanks.

You could make your own variable instead of using a string literal:

(defvar my-style-sheet "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\"
                         href=\"include/style.css\" />")

(muse-derive-style "my-xhtml" "xhtml"
		   :style-sheet 'my-style-sheet)



Regards,
-- 
Jim Ottaway