Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 27th, 2006, 03:55 AM
dude
Guest
 
Posts: n/a
Default help converting xml into html

I using debian stable
I just starting nxml mode to write xml documents.
the problem is that i can find no easy way to convert the xml file into
html

the xmlto program no longer works.

Ive googled and cant find a clear explanation of what I am missing

  #2  
Old July 27th, 2006, 12:55 PM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: help converting xml into html

dude wrote:
Quote:
the problem is that i can find no easy way to convert the xml file into
html
The standard solution is to use an XSLT stylesheet that understands your
XML and renders it appropriately in HTML. If you're working with a
well-defined XML-based markup language, you may be able to find a
stylesheet someone else has already written; I'm not familiar with nxml
so I can't advise.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
  #3  
Old July 29th, 2006, 05:45 PM
dude
Guest
 
Posts: n/a
Default Re: help converting xml into html

Thanks.
It turns out that the solution was simple, but so simple it was never
explained and was just assumed everyone knoe until I found this

A valid XML document is one that has a document type (or "DOCTYPE")
declaration and conforms to the DTD in that document type declaration.
(Remember, an XML document with no DOCTYPE declaration isn't valid, but
it can still be a legal XML document as long as it's well-formed.
"Valid" is a technical term referring to the presence of and
conformance to a DOCTYPE declaration.)

ie aside from just putting in

<?xml version="1.0"?>

i needed this line for xmlto to work

<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML//EN"
"../dtds/chapter.dtd">


Joe Kesselman wrote:
Quote:
dude wrote:
Quote:
the problem is that i can find no easy way to convert the xml file into
html
>
The standard solution is to use an XSLT stylesheet that understands your
XML and renders it appropriately in HTML. If you're working with a
well-defined XML-based markup language, you may be able to find a
stylesheet someone else has already written; I'm not familiar with nxml
so I can't advise.
>
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles