Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Implementing a "State Machine" in XSL? Implementing a "State Machine" in XSL?To: NULL Date: 2/6/2008 7:48:00 PM Hello, i need to use XSL to truncate a HTML fragment, keeping the tags intact. So for example, i want to truncate this HTML to include ~15 visible characters: <b>This is a <span style="color: #888">very long</span> Text</b> The result should be: <b>This is a <span style="color: #888">very </span></b> As you see, i ignore the tags and count to 15. But then i may have open tags, so i close the open tags (which means i somehow need to keep track of which tags are still open). In conventional programming, i would use a state machine for this, but I do not know enough about XSLT to do that. Any hints? -- http://www.Stum.de · http://www.Souvenance.net e-Mail Adresse ist gültig, wird aber äußerst selten gelesen. e-Mail address is valid, but read very infrequently. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
