This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to use <a style="{font: 10pt arial}"> in XSL? Keep getting error.
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to use <a style="{font: 10pt arial}"> in XSL? Keep getting error.
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 6 Mar 2001 09:09:49 GMT
- References: <GEEILLHAAFBKBBBMPBLCKEGOCGAA.kevin.duffey@home.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
I am sure there is a good reason for why the error of "Namespace prefix font
has not been declared" when I use the syntax of
<a style="{font: 10pt arial}" href="/path/page.jsp">click</a>
I would like to use styles on my pages to give links different colors and
faces.
Thanks.
Why have you got {} there. They are attribute value templates that
tell the system to evaluate the contents of the {} as an XPath
expression. font: 10pt arial is not an XPath expression.
Just remove the {}.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list