RJN,
As _AnonCoward suggest, XSLT can only parse "XML", however in .NET it can
parse anything that can be "represented as" XML. In other words that has
either an XPathNavigator for or can be read with an XmlReader object.
For example the following article discusses ObjectXPathNavigator that allows
you to run XSLT against ANY object:
http://msdn.microsoft.com/library/de...ml03172003.asp
The following articles discuss how to create a custom XmlReader object:
http://msdn.microsoft.com/msdnmag/is...l/default.aspx http://msdn.microsoft.com/msdnmag/is...4/05/XMLFiles/
Depending on the format of the .txt file, I would probably create a custom
XmlReader object similar to the GedcomReader in the last link above.
Hope this helps
Jay
"RJN" <rj*@yahoo.com> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
|
| Hi
|
| Pardon me for posting an XML question here.
| Can XSLT be applied for transforming .txt files or are they applicable
| only for xml to xml transformation.
|
| Currently all the clients send file to a server in one particular
| format. The format of the file which the server accepts is going to
| change. So we need to build an intermediate system which will do the
| transformation from the old format to the new format. Can I use XSLT for
| doing this? Is XSLT applicable only when xml to xml transformation is
| involved?
|
| Regards
|
| rjn
|
| *** Sent via Developersdex
http://www.developersdex.com ***