This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to use <a style="{font: 10pt arial}"> in XSL? Keep getting error.



   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]