xsl-list
[Top] [All Lists]

RE: templates/themes/look-and-feel - suggestions needed

2004-07-13 02:45:53
Hi TP

try this

Forward slash should be used either before figure name or at the end of
theme name.

Supplied coding:
<img title="View"><xsl:attribute name="src"><xsl:value-of
select="$theme"/>view.gif</xsl:attribute></img>

Suggested coding:
<img title="View"><xsl:attribute name="src"><xsl:value-of
select="$theme"/>/view.gif</xsl:attribute></img>

Regards,
Bhuvana
Integra Software Services Pvt. Ltd.
Pondicherry - 605005
www.integra-india.com

-----Original Message-----
From: CKing [mailto:cking(_at_)pandora(_dot_)be]
Sent: Monday, July 12, 2004 7:25 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] templates/themes/look-and-feel - suggestions needed


Hi,
I was just writing a reply, but David was faster, I wanted to say the same.
(<img src{$theme}view.gif" title="View"/>)
As for links, I have learned a lot from these:

http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html
Chapter 17 of the  XML Bible, Second Edition : XSL Transformations

http://safari.oreilly.com/?XmlId=0-596-00372-2
XSLT Cookbook (completely readable online)

and of course, the http://www.dpawson.co.uk/xsl/ XSL FAQ

cheers
Anton


----- Original Message -----
From: "tpass001" <tpass001(_at_)hotmail(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, July 12, 2004 3:27 PM
Subject: Re: [xsl] templates/themes/look-and-feel - suggestions needed


Any ideas or suggestions please?


Hi,

I am using xslt to transform xml into html and other formats for a while
on
a project.

The brass now needs a way to easily change the look and feel of the
webapp
as pluggable themes. I use a central stylesheet for css bindings, so all
xsl
files call on this css file.

What I was thinking of doing was pass a parameter to my xsl files whose
value would be the theme name to use, where theme name would be the
directory where the image files and css files are located. What this
would
involve on my part is to manually go to each xsl file and change

<img src="../images/view.gif" title="View"/>

to

<img title="View"><xsl:attribute name="src"><xsl:value-of
select="$theme"/>view.gif</xsl:attribute></img>

where $theme=../images or any theme directory. and is an input parameter
to
the stylesheet, provided externally.

I have been searching on the internet all morning trying to see if
anyone
has done this. Maybe I was not searching on the right words, but I would
appreciate your thoughts on this as well as links if you know of any.

Thanks.

TP.

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--