D
danmc91
Hi,
I'm just getting going with xml and xslt. I'm trying to write what are
essentially man pages and I need 3 output formats.
1) nroff -man format for real man pages
2) html for an online help browser
3) ascii where every line must start with a '%' character (octave
online help).
So, I made a simple DTD, a simple man page in xml format and hacked up
some .xsl files.
I've more or less got something working for #1 and #2. The .xsl file
for #3 is proving to be a real pain. I'm using <xslutput
method="text"/>. Is there some way to force every line in the output
file to start with a %? Or maybe I'm doing this the wrong way.
Perhaps I should output html and use something like
xsltproc foo.xsl bar.xml | lynx -dump - | awk '{printf("% %s\n",
$0)}' > bar.m
Any comments? Is this the sort of thing that xml and xslt are meant
for or am I really using the Wrong Tool?
Thanks
-Dan
I'm just getting going with xml and xslt. I'm trying to write what are
essentially man pages and I need 3 output formats.
1) nroff -man format for real man pages
2) html for an online help browser
3) ascii where every line must start with a '%' character (octave
online help).
So, I made a simple DTD, a simple man page in xml format and hacked up
some .xsl files.
I've more or less got something working for #1 and #2. The .xsl file
for #3 is proving to be a real pain. I'm using <xslutput
method="text"/>. Is there some way to force every line in the output
file to start with a %? Or maybe I'm doing this the wrong way.
Perhaps I should output html and use something like
xsltproc foo.xsl bar.xml | lynx -dump - | awk '{printf("% %s\n",
$0)}' > bar.m
Any comments? Is this the sort of thing that xml and xslt are meant
for or am I really using the Wrong Tool?
Thanks
-Dan