xsl-list
[Top] [All Lists]

RE: Text To XML using XSL

2005-04-11 00:39:50
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(_at_)ald(_dot_)apexcovantage(_dot_)com] 
Sent: 11 April 2005 05:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>