Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm just getting into XML. I understand that one of the promises of XML is taht one can combine XML with a customised XSL stylesheet and spit out the XML data in just about any other format I choose. Thus if I write a manual (my first toy example) I should be able to write a stylesheet that spits out the manual in conventional html; I can put it into a groffable format so that it can be used as a conventional command line man page; and similarly I should be able to convert it to a plain text file. Well:
- I've found texts that describe how to write XSL stylesheets. It even works when I point a browser at one of my XML files. Wow!
- However I can't find a way of getting hold of the xml file immediately after being processed by the stylesheet. I'd like a command that can take my stylesheet and XML such as "<TOG>CAT MAINTANANCE</TOG><P>Cat source code is freely..." and convert it to e.g. man page fodder of the form: ".SH CAT MAINTENANCE\nCat source...".
Obviously this can be done if I write a program that parses the xml but I was under the impression that the stylesheet could define the mapping so that no further programming was required. Is that not the case?
Last edited by Tischbein; 10-26-2007 at 04:46 PM.
Reason: XSL not XLS ... sorry!