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>
>
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


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