Subject: Re: Highlighting
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 12 May 2004 09:22:27 +0100
|
Hi Michael,
What we are doing is creating an xsl template which we are then generating
as pdf or html (could be either as the user requires) and rendering with
FOP.
I was just wondering if there was some xsl attribute that could be used that
would highlight a section of text. I understand that the background-color
attribute of fo:inline is what I need, but it isn't implemented in FOP.
If you have any other ideas, I would be grateful. I would say, however,
that PDF is our primary target.
Thanks
Mark Williams
----- Original Message -----
From: "Michael Kay" <mhk@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 11, 2004 6:07 PM
Subject: RE: Highlighting
> >
> > Can anyone point me in the right direction as to how I would add
> > highlighting (ie a background colour) to parts of text in an
> > xsl template.
> >
>
> Are you generating HTML?
>
> If you don't know what HTML you want to generate, then someone on this
list
> may help you, but it isn't the correct place to ask. If you know what HTML
> you want to produce but don't know how to produce it, then you're in the
> right place, but need to describe the target output.
>
> My recommendation would be to generate HTML using "class" attributes to
> identify the display styles you want, and then to define the display
styles
> in a CSS style sheet linked to the HTML document (or embedded in it if you
> prefer).
>
> Michael Kay
|