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]

Matching all attributes by content



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


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