Re: Text to XML
Colin Paul Adams <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "tiaan" == tiaan <[email protected]> writes: tiaan> Hi, XSLT can be used to convert XML to Text but is there tiaan> any tool with a powerful set of features to assist in tiaan> converting Text to XML ? I have come accross scenarios tiaan> where legacy applications can generate clear text printouts tiaan> of invoices. You can see with the naked eye there is tiaan> structure to the ASCII file and it would have been nice if tiaan> there was something with the primitives of XSLT but which tiaan> could use for instance regular expressions to tiaan> anchor/identify blocks instead of well-formed XML tags. tiaan> Does anyone know of something like this ? Yes. It's called XSLT 2.0 :-) You have the unparsed-text() function, and the xsl:analyze-string instruction to do this sort of thing. -- Colin Adams Preston Lancashire