sgml

HTML comments break down

I have a page that is generated which inserts an HTML comment near the top of the page. Inside the comment is a *nix-style command. <!-- command --option value --option2 value2 --option3 --> This comment breaks the page completely. What is wrong with the comment to cause this to happen, and why is this the case?...

Why can't SGML::Parser::OpenSP find the symbol __ZTI15SGMLApplication?

I'm trying to "install SGML::Parser::OpenSP" from the cpan shell, but it fails on the first "make test". I also get the same error if I go into the build directory and run make test. I believe this bit of the output below is the relevant part. Note the Symbol not found when perl gets to the "use" line for the new library. The file list...

SGML Parser in Plain C

I'm looking for an open-source SGML parser written in plain C. This is to parse bona-fide SGML, not malformed stuff. Any ideas? ...

What is the difference between SGML and XML?

All the Google results suck. ...

Are there any reasons to use SGML instead of XML?

As I understand it, XML is a subset of SGML conceived to simplify it and encourage a more widespread usage. I guess most useful features was brought into XML, but are there any features in SGML powerful enough to motivate using it instead of XML (and accepting the overhead in complexity)? ...

SGML parser .NET recommendations

In my C# project, I have been dealt with the task of parsing an SGML file and have tried, very naively, to use XmlReader, and this has led to some interesting revelations (i.e., the difference between SGML and well-formed XML, etc.) So I am thinking that I just need a good SGML parser which converts it to an XML file and go from there. ...

Definition of HTML whitespace rules?

I'm looking for this definition to make my HTML renderer conform a bit better. Currently it's guessing which whitespace to keep, which to collapse and what to throw. The SGML standard is hard to find and the HTML standard doesn't seem to treat the subject with the required depth for my needs. Currently my renderer parses the HTML into a...

Converting legacy SGM to XML

I have a task at work that involves converting legacy SGM files into XML. The SGM files were created using 5 separate high level tags, the new DTD has about 8-12 top level tags that the old ones would need to be mapped to. There are some common tags between the 2 DTDs but there are enough differences that it doesn't make sense to just do...

Java SGML to XML conversion?

Hi, Does anyone know of a method, or library, to convert SGML into XML? EDIT: For clarification, I have to do the conversion in Java, and I cannot use the SP parser or the related SX tool. ...

Grab some ofx data with python

I was trying to use http://www.jongsma.org/gc/scripts/ofx-ba.py to grab my bank account information from wachovia. Having no luck, I decided that I would just try to manually construct some request data using this example So, I have this file that I want to use as the request data. Let's call it req.ofxsgml: FXHEADER:100 DATA:OFXSGML ...

Eclipse IDE : SGML plugin ?

Do you know a plugin for editing SGML files within Eclipse ? ...

quoting HTML attribute values

Hi I know the spec allows both ' and " as delimiters for attribute values, and I also know it's a good practice to always quote. However I consider " being the cleaner way, maybe it's just me having grown up with C and C++' syntax. What is the cleanest way of quoting attribute values and why? Please no subjective answers. ...

get contents of <a> tags using python

Assuming I have html read into my program like this: <p><a href="http://vancouver.en.craigslist.ca/nvn/ret/1817849271.html"&gt;F/T &amp; P/T Sales Associate - Caliente Fashions</a> - <font size="-1"> (North Vancouver)</font></p> <p><a href="http://vancouver.en.craigslist.ca/van/ret/1817804151.html"&gt;IMMEDIATE EMPLOYMENT WANTED!</a> - ...

Parsing Java String with SGML.

I have a Java String with SGML, something like this... <misspell></misspell><plain>I</plain> <plain>know</plain> <plain>you</plain> <suggestion>ducky</suggestion> <plain>suck</plain> <plain>and</plain> <plain>I</plain> <plain>rocky</plain> <plain>rock</plain> How do I parse it to get for instance say the text inside <suggestion> </sug...

Is &gt; ever necessary?

I now develop websites and XML interfaces since 7 years, and never, ever came in a situation, where it was really necessary to use the &gt; for a >. All disambiguition could so far be handled by quoting <, &, " and ' alone. Has anyone ever been in a situation (related to, e.g., SGML processing, browser issues, XSLT, ...) where you found...

WYSIWYG XML Editor (DTD or RelaxNG or XSD based grammars)

Hi all I'm in need to make a WYSIWYG XML editor for a custom XML grammar. By this time I have explored all the OpenSource tools that I could find under this domain. Includes VEX, Oxygen, Bitflux... Since none of them were serving my purpose. I'm also looking for javascript based WYSIWYG HTML editors which can support and additional DOC...

removing multiple tags in SGML

i have a sgml file like <p><p><data>sdlksdskdmskdmsamdakmdksam<p></data>... my question is how to remove one tag <p> and keep another one intact ...which regular expression would be siutable...... ...