xsl-list
[Top] [All Lists]

Re: [xsl] using copy-of and substring-ing retaining child elements

2006-11-23 10:32:26
Karl wrote:

  Hi

1) Is there a way by using xslt, I can display <p/>
content restricting to certain chars, but retaining child
elements.

  I would write a recursive function that recurses on all
text and element child nodes and shallow copies while below
the limit.  When the limit is encountered, the (string value
of the) node is truncated and the recursion stops.

  But it is just an idea, I didn't wrote a line at all.

  Regards,

--drkm























        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
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>