 |
|
 |
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1616
|
Re: XML,pHp,VB, combined problem...any idea BigBrains
Kind of a lot to ask on short notice (your boss that is)...
Well, just for a really simple thing you can look at:
http://www.w3schools.com/xml/default.asp
Here's a simple XML/XSL coding (XSL is the format for how it's displayed):
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="xsl.xsl"?>
<database>
<word>
<display>Alpha</display>
</word>
<word>
<display>Beta</display>
</word>
</database>
|
XSL:
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict">
<body style="font-family:Arial,helvetica,sans-serif;font-size:12pt;background-color:#EEEEEE">
<xsl:for-each select="database/word">
<div style="background-color:teal;color:white;padding:4px">
<span style="font-weight:bold;color:white">
<xsl:value-of select="display"/>
</span>
</div>
</xsl:for-each>
</body>
</html>
|
If you put two files in the same folder on your computer, and name the XSL file "xsl.xsl" you can get an idea of what it looks like.
If the data's just stored in a XML file, you'd just have to add the data to the end (well, maintaining proper format). Not sure why the VB has to interact with other things.
[Edited by JLRodgers on 21-10-2003 at 01:33 PM GMT]
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
21-10-2003 at 07:33 PM |
|
|
|
|
 |
 |