Subject: Re: [xsl] string replacement for HTML tags From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 26 Apr 2002 09:24:25 +0100 |
> But without d-o-e is there any alternative? You mean to get from [foo] to <foo/> or <x>foo</x>? Yes of course that can be done just using XSLT. I have, in production here at NAG stylesheets not using any extensions (not even node-set) that parse arbitrarily deeply nested {} brackets (and other TeX derived markup) and convert to XML (or HTML, depending) > ... as XML - can cause great problems, if the [] were not correct > structured (in the sense of XML). if there is a chance that the incoming [] are not correctly matched then you should definitely use a recursive template approach, so you can catch these cases, rather than just blindly translate() [ to < and so produce non-well formmed XML which is neither use nor ornament. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] string replacement for HT, Michael Kay | Thread | [xsl] Re: RE: Extending xsltproc?, Dimitre Novatchev |
RE: [xsl] new user xslt, Michael Kay | Date | [xsl] Can any body says me how can , Carlos |
Month |