xsl-list
[Top] [All Lists]

Re: Highlighting

2004-05-12 01:22:27
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(_at_)mhk(_dot_)me(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, May 11, 2004 6:07 PM
Subject: RE: [xsl] 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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





<Prev in Thread] Current Thread [Next in Thread>