Subject: RE: How to use <a style="{font: 10pt arial}"> in XSL? Keep getting error.
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 6 Mar 2001 09:29:59 -0000
|
> 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
|