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'" <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: "Beckers, Marc" <Marc dot Beckers at softwareag dot com>
- Date: Tue, 6 Mar 2001 12:06:48 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> -----Original Message-----
> From: Beckers, Marc [mailto:Marc.Beckers@softwareag.com]
> Sent: Tuesday, March 06, 2001 11:56 AM
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: RE: [xsl] How to use <a style="{font: 10pt arial}"> in XSL?
> Keep getting error.
>
>
> The correct syntax for local CSS would be (long version):
>
> <a style="font-size: 10pt; font-family: arial;"
> href="/path/page.jsp">click</a>
>
> (Note that versions of Netscape 4.x like the semi-colon
> after the last CSS instruction on the style attribute)
>
> The curly braces is the syntax for CSS in an internal
> or external style sheet:
>
> a {font-size: 10pt; font-family: arial;}
>
> My guess is the two got confused ...?..
>
> Marc
>
> > 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list