Subject: Re: How to use <a style="{font: 10pt arial}"> in XSL? Keep getting error.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Mar 2001 09:09:49 GMT
|
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
|