Wouldn't it be better to do this in a RTL version of the style sheet (that just contains the RTL specific parts), and link to that sheet in addition to existing "generic" style sheet?
Or are there other kinds of things that you need to do when generating the HTML? --Wez. > -----Original Message----- > From: moshe doron [mailto:[EMAIL PROTECTED] > Sent: 10 May 2004 14:10 > To: [EMAIL PROTECTED] > Subject: [PHP-DOC] livedocs [PATCH] - allowing style_mapping > to transform() > > Hi: > > this patch allow style_mapping functions to continue > transform the node via > the default transform function: > http://moshe.i-com-it.com/patchs/livedocs-styletransform.patch.txt > > i run into the issue when i see i have no elegant way override the > text-align style using the transform function, without > re-writing all the > generation flow by hand. > > this behavior can be useful for small changes like > duplication of childs > nodes (e.g, make the first child title) or changing the html > order of two > node without manualy generating all the subnodes. > > explanations: > 1. i splite the transform function into transform() that > check if we calling > to style_ function, and transfor_default() which is called if > no style_ > function. > 2. if the map callback function begin with '+', the function > suppose to get > the $map beside the node. this map is moved into the > $node->transform_default(). > > thoughts? > > --/moshe. >