Re: [xsl] Split HTML File Into XML and XSL

Subject: Re: [xsl] Split HTML File Into XML and XSL
From: Josh Canfield <joshcanfield@xxxxxxxxx>
Date: Mon, 16 Aug 2004 18:52:42 -0700
I'd recommend going through a basic XSL tutorial before attempting
this project. You can find a host of them here:
http://www.google.com/search?hl=en&ie=UTF-8&q=xsl+tutorial
Try this one to get you started:
http://www.w3schools.com/xsl/default.asp

Each of them will have an example of a complete XSL and XML file. You
will be better off in the long run if you don't just start cutting and
pasting without reading about how to use the language.

Good luck,
Josh


On Mon, 16 Aug 2004 15:11:05 -0500, Trevor Majic <majic87@xxxxxxxxxxx> wrote:
> I need to be able to convert the following HTML document into an XML and
XSL
> file.
>
> The reason for this, is that I would like to have one stylesheet for the
few
> hundred XML files I will have.  These files will be opened in a program
> called LinkOne, which will display the XML data (ie. StockCode, PartNumber,
> Supplier, Description, Price, etc), along with a selection icon
> (le-select="always"), which allows items to be added to the Linkone
shopping
> cart.  The LinkOne program uses the Internet Explorer engine installed on
> the local computer (each of the local machines are using IE6).  Note:  When
> the HTML document is viewed in IE6, the selection icon is not visible.
> However, when the file is opened in Linkone, the selection icon is visible.
>
> Would somebody please tell me what the headers need to be for the XML and
> XSL files.  I have several converters, but they either generate an error,
or
> the data is still embedded with the formatting.
>
> This is the simplified version of the HTML document (one row with no
> formatting):
>
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <?IS10744:arch name="linkone-enabled"
>                                public-id="-//LinkOne//NOTATION AFDR ARCBASE
Linkone enabled//EN"
>                                        auto=nArcAuto?>
> <html xmlns="http://www.w3.org/TR/REC-html40";>
>
> <table>
>
> <tr linkone-enabled="entry">
>
> <td linkone-enabled="field" le-name="Stock Code"
> le-select="always">500100</td>
>
> <td linkone-enabled="field" le-name="Part Number"
> le-select="hide">WR151-12</td>
>
> <td>3/4&quot; Wrench</td>
>
> <td>ea</td>
>
> <td>WRCH</td>
>
> </tr>
>
> </table>
>
> Thanks in advance,
>
> Trevor
>
> _________________________________________________________________
> Designer Mail isn't just fun to send, it's fun to receive. Use special
> stationery, fonts and colors.
>
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http
://hotmail.com/enca&HL=Market_MSNIS_Taglines
>  Start enjoying all the benefits of MSN. Premium right now and get the
> first two months FREE*.

Current Thread