Subject: Re: [xsl] Split HTML File Into XML and XSL From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 18 Aug 2004 10:10:36 +0100 |
I have studied several tutorials, and have also read all of the documentation at www.W3.org, but I am unable to figure out how to split this HTML file into an XML file with an XSL stylesheet, without generating an error. Once I have the base XML/XSL file, I should be able to do everything I need to do without any problems. Would somebody please tell me what to do with this section (please? pretty please? pretty please with a cherry on top?): You have given no indication at all what kind of problem or error you are having. You also show some lines of a document but don't say what you think that document is doing or whether it is html or xml. however.. <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> DOCTYPE and PUBLIC have to be upper case so this line will generate an error as HTML or XML If the file is intended to be XML then you can not just have a PUBLIC ID you also have to have a URI <?IS10744:arch name="linkone-enabled" public-id="-//LinkOne//NOTATION AFDR ARCBASE Linkone enabled//EN" auto=nArcAuto?> If that is intended to be an IS10744 PI inside an HTML file then it should end with > not ?> If it is intended to be an XML processing instruction than it does need to end in ?> but the name IS10744:arch does not conform to the XML namespace spec as IS10744 isn't declared as a namespace and you can't use prefixed names in processing instructions. <html xmlns="http://www.w3.org/TR/REC-html40"> If this is intended to be HTML it should not have an xmlns declaration, if it is intended to be xhtml that is the wrong namespace, it should be http://www.w3.org/1999/xhtm. David Thank you, Trevor ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Split HTML File Into XML , Trevor Majic | Thread | Re: [xsl] Split HTML File Into XML , Trevor Majic |
Re: [xsl] single precision bug, David Carlisle | Date | Re: [xsl] modes and temp trees (was, David Carlisle |
Month |