This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Matching all attributes by content
- To: "Xsl List (E-mail)" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Matching all attributes by content
- From: "HEBBRON,TOM (HP-UnitedKingdom,ex2)" <tom_hebbron at hp dot com>
- Date: Tue, 19 Dec 2000 10:13:36 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
I am building an XML/XSL system for creating web pages which may include
BroadVision script calls - or indeed any server side include. This is no
problem for normal page SSI includes - I have a tag <SSI>code etc</SSI>
which writes <% code etc %> into the output HTML. However, the problem
arises when the BV code is to fill an attribute - eg the colour of a cell
<td bgcolor="<%=pickacolor()%>">sfhfh</td>
I cannot use the angle brackets inside the attribute value. Is there some
way of doing this?
My solution was to have any BV attribute begin with a '%' symbol - then
match all attributes whose value begins with % and rewrite them as '<' +
currentcontent + '%>'
Could anyone suggest how this might be done?
--
Tom Hebbron
e-business, HP Bristol
Tel: +44(0)117 3129300
Fax: +44(0)117 3129923
tom_hebbron@hp.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list