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: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 6 Mar 2001 09:29:59 -0000
- 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>
>
The curly braces denote an attribute value template, the contents are
treated as an XPath expression. If you want the generated HTML attribute to
contain curly braces, double them:
<a style="{{font: 10pt arial}}" href="/path/page.jsp">click</a>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list