|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Text To XML using XSL
This is much easier in XSLT 2.0 than in 1.0. I have found that many text-to-XML applications involve the following stages: (a) reading the text file using unparsed-text() (b) splitting it into lines using tokenize() (c) analyzing (parsing) the content of the lines using xsl:analyze-string (regular expressions) (d) grouping the lines into records using xsl:for-each-group As you see, each stage benefits from new features in XSLT 2.0. All of them can be done using 1.0 (for example, step (a) can be replaced by passing the text as a string-valued parameter) but it's much harder work: sufficiently hard work that it's probably easier to use a different language, such as Perl. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: N. Ganesh Babu [mailto:ganesh@xxxxxxxxxxxxxxxxxxxxx] > Sent: 11 April 2005 05:24 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Text To XML using XSL > > Dear All, > > I am very well know that we can convert XML files into any > other files > viz. HTML, XHTML, SGML , Text by using XSL. Is it possible to convert > Text into XML,HTML using XSL? If yes, please let me know the > resources. > > Regards, > Ganesh
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








