killasmurf86 said:
How to convert xml to html?
How to convert xml to forum BB code?
I use XML to write my guides, mostly OpenBSD related, that is why you won't find them here
To transform XML into another format, you use an XSLT stylesheet. One stylesheet creates XHTML, another stylesheet creates VBulletin code.
At the end of my (OBSD)guide at
http://daemonforums.org/showthread.php?t=2232 you see two RCS identifiers
Code:
$Id: USBusermounting.xml,v 1.3 2008/10/23 00:23:08 j65nko Exp $
$Id: vbul-html.xsl,v 1.14 2008/09/12 03:44:16 j65nko Exp $
The source file is
USBusermounting.xml, while the XSL stylesheet
vbul-html.xsl produces Vbulletin code.
If you would download the XHTML version of this guide you would see the following RCS Id tags:
Code:
$Id: USBusermounting.xml,v 1.3 2008/10/23 00:23:08 j65nko Exp $
$Id: howto.xsl,v 1.17 2008/09/11 02:32:15 j65nko Exp $
The first tag is the same
USBusermounting.xml XML source. The second one,
howto.xsl, identifies the stylesheet that transformed the XML into XHTML.
You could roughly compare an XML document as C source code.
The same C code document used to produce opcodes for the 32 bit i386 processor, can also be used to generate 64 bit instructions for amd64 processor by using another compiler or compiler switch.
The wikepdia XSLT article explains more about these tranformations :
http://en.wikipedia.org/wiki/XSLT.
Something similar can be done with SGML and DSSL stylesheets.
The FreeBSD project uses Docbook SGML to maintain and produce different output formats of the FreeBSD handbook. See
http://www.freebsd.org/docproj/sgml.html