[Home] [By Thread] [By Date] [Recent Entries]
Brook,
Sorry I haven't been able to post on this interesting problem. One is always reluctant to say something is impossible. (And I've been very busy.) Yet it does appear that you are trying to do two mutually exclusive things at once: 1. Process elements that contain arbitrary mixed content as strings, to perform string operations on them (in your case, splitting out and wrapping substrings). 2. Process elements that contain arbitrary mixed content as trees of nodes, so you can represent their mixed content in appropriate ways in the output. You can't do both these things at once on the same element. You can, however, get the results you want, or at least something close, if you do the two things in two separate passes. If you are willing to use a node-set() extention function, or XSLT 2.0, you can even run these two passes in a single run of a stylesheet. (Nonetheless I'd first build them to run separately, just to keep myself sane.) When you do this, you'll have to decide which process comes first; the best answer to this depends on your data and requirements. Particularly, you'll have to consider what you want to happen if your mixed content elements ever happen to split strings which you are also trying to wrap.... the presence of elements in mixed content may prevent your string-wrapping from working if you're not content just to throw away the inline elements. Cheers, Wendell At 01:19 PM 8/26/2003, you wrote: Hi, ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



