I need to modify "on the fly" a class name in portal-column-content tag, this is the html code rendered:
<div id="portal-column-content" class="cell width-9 position-1:4">
I want to replace only "width-9" with "width-12".
Any advice?
Thank's
Vito
Since you ask for advise, here is some:
Do not use a css class to signify anything concrete, let it signify intent. The concrete implementation of the intent comes in the css. For instance, do not create a class named
width-9, rather create one namedportal-column-content. You can then makeportal-column-contentbewidth:9px,width:12emor whatever.Doing a string-replace like this is not really a thing you would do with xslt. Even though you could. Depending on your setup there are other, better ways.
If you can't/won't follow any of the above advise, try