473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

RXP parser

With this page http://shillinglaw.atspace.com/ as the subject, the
validator http://www.cogsci.ed.ac.uk/~richard/xml-check.html says the page
appears to be not well formed, but selecting the Xerces parser at
http://valet.webthing.com/page/ shows the page to be valid and well formed.
What does the RXP parser require that the others do not? The standalone
declaration seems to be the issue, and a standalone document is what I am
trying to achieve.

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #1
9 1523
"Stuart J. Shillinglaw" <st****************@shaw.ca> put to writing:
With this page http://shillinglaw.atspace.com/ as the subject, the
validator http://www.cogsci.ed.ac.uk/~richard/xml-check.html says the
page appears to be not well formed, but selecting the Xerces parser at
http://valet.webthing.com/page/ shows the page to be valid and well
formed. What does the RXP parser require that the others do not? The
standalone declaration seems to be the issue, and a standalone
document is what I am trying to achieve.


I forgot to mention to select validate in the RXP parser.

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #2


Stuart J. Shillinglaw wrote:
With this page http://shillinglaw.atspace.com/ as the subject, the
validator http://www.cogsci.ed.ac.uk/~richard/xml-check.html says the page
appears to be not well formed, but selecting the Xerces parser at
http://valet.webthing.com/page/ shows the page to be valid and well formed.
What does the RXP parser require that the others do not? The standalone
declaration seems to be the issue, and a standalone document is what I am
trying to achieve.


I have no experience with that parser but what it displays when
validating that URL is only marked as warnings. Those warnings rightly
point out that there are external markup declarations in the external
subset of the document type declaration thus the XML document should be
labelled as standalone="no".

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #3
Martin Honnen <ma*******@yahoo.de> put to writing:
With this page http://shillinglaw.atspace.com/ as the subject, the
validator http://www.cogsci.ed.ac.uk/~richard/xml-check.html says the
page appears to be not well formed, but selecting the Xerces parser
at http://valet.webthing.com/page/ shows the page to be valid and
well formed. What does the RXP parser require that the others do not?
The standalone declaration seems to be the issue, and a standalone
document is what I am trying to achieve.


I have no experience with that parser but what it displays when
validating that URL is only marked as warnings. Those warnings rightly
point out that there are external markup declarations in the external
subset of the document type declaration thus the XML document should
be labelled as standalone="no".


Is there such a thing as internal markup declarations?

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #4
"Stuart J. Shillinglaw" <st****************@shaw.ca> put to writing:
Martin Honnen <ma*******@yahoo.de> put to writing:
With this page http://shillinglaw.atspace.com/ as the subject, the
validator http://www.cogsci.ed.ac.uk/~richard/xml-check.html says the
page appears to be not well formed, but selecting the Xerces parser
at http://valet.webthing.com/page/ shows the page to be valid and
well formed. What does the RXP parser require that the others do not?
The standalone declaration seems to be the issue, and a standalone
document is what I am trying to achieve.


I have no experience with that parser but what it displays when
validating that URL is only marked as warnings. Those warnings rightly
point out that there are external markup declarations in the external
subset of the document type declaration thus the XML document should
be labelled as standalone="no".


Is there such a thing as internal markup declarations?


I really think that external declarations do not have a direct bearing on a
standalone document. I am just trying to use the right format. Using
xml:space="preserve" for an inline cascading stylesheet, allows the style
to become independent, and is allowed for the other parsers I have used.
Any further help from anyone would be appreciated as I am trying to pursue
the correct format.

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #5
> I really think that external declarations do not have a direct bearing
on a standalone document. I am just trying to use the right format.
Using xml:space="preserve" for an inline cascading stylesheet, allows
the style to become independent, and is allowed for the other parsers
I have used. Any further help from anyone would be appreciated as I am
trying to pursue the correct format.


It also seems to be parsing some other document because there is no entity
"HTMLlat1" that is listed in the first line of the results in my document.
Therefore, it may be parsing a document that is linked to such as the
document type.

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #6


Stuart J. Shillinglaw wrote:
Martin Honnen <ma*******@yahoo.de> put to writing:
I have no experience with that parser but what it displays when
validating that URL is only marked as warnings. Those warnings rightly
point out that there are external markup declarations in the external
subset of the document type declaration thus the XML document should
be labelled as standalone="no".


Is there such a thing as internal markup declarations?


The standalone declaration and the term external markup declaration is
defined in the XML specification, see
<http://www.w3.org/TR/REC-xml/#sec-rmd>

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #7
In article <42***********************@newsread2.arcor-online.net>,
Martin Honnen <Ma***********@gmx.de> wrote:
Those warnings rightly
point out that there are external markup declarations in the external
subset of the document type declaration thus the XML document should be
labelled as standalone="no".


The spec isn't explicit about this, but the fact that the external subset
refers to external entities clearly shouldn't be enough to make a
document non-standalone. The idea of standalone is to assert that you
don't need to fetch anything external, so if nothing from the external
DTD is used it shouldn't matter that the external DTD itself refers
to other external entities.

So this is a bug in RXP, which I will fix.

-- Richard
Jul 20 '05 #8
ri*****@cogsci.ed.ac.uk (Richard Tobin) put to writing:
The spec isn't explicit about this, but the fact that the external subset
refers to external entities clearly shouldn't be enough to make a
document non-standalone. The idea of standalone is to assert that you
don't need to fetch anything external, so if nothing from the external
DTD is used it shouldn't matter that the external DTD itself refers
to other external entities.

So this is a bug in RXP, which I will fix.


Thanks for responding yourself. I was trying to find some format fix to
improve the integrity when writing that kind of document.

--
Stuart J. Shillinglaw
http://shillinglaw.atspace.com/
Jul 20 '05 #9
In article <d8***********@pc-news.cogsci.ed.ac.uk>,
Richard Tobin <ri*****@cogsci.ed.ac.uk> wrote:
So this is a bug in RXP, which I will fix.


Now done.

-- Richard
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Paulo Pinto | last post by:
Hi, does anyone know of a Python package that is able to load XML like the XML::Simple Perl package does? For those that don't know it, this package maps the XML file to a dictionary.
11
by: Jean de Largentaye | last post by:
Hi, I need to parse a subset of C (a header file), and generate some unit tests for the functions listed in it. I thus need to parse the code, then rewrite function calls with wrong parameters....
1
by: Karalius, Joseph | last post by:
Can anyone explain what is happening here? I haven't found any useful info on Google yet. Thanks in advance. mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make gcc -pthread -c...
3
by: Himanshu Garg | last post by:
Hello, I am trying to pinpoint an apparent bug in HTML::Parser. The encoding of the text seems to change incorrectly if the locale isn't set properly. However Parser.pm in the directory...
2
by: Joel Hedlund | last post by:
Hi! I have a possibly dumb question about imports. I've written two python modules: parser.py ------------------------------------ class Parser(object): "my parser"...
5
by: thewarden | last post by:
I've come into a situation where I require to have BBCode parsed, this includes the standard tags supported by PEAR package HTML_BBCodeParser and custom BBCode tags I've added myself. My problem...
28
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to...
0
by: UncleRic | last post by:
Environment: Mac OS X (10.4.10) on MacBook Pro I'm a Perl Neophyte. I've downloaded the XML::Parser module and am attempting to install it in my working directory (referenced via PERL5LIB env): ...
18
by: Just Another Victim of the Ambient Morality | last post by:
Is pyparsing really a recursive descent parser? I ask this because there are grammars it can't parse that my recursive descent parser would parse, should I have written one. For instance: ...
0
by: arvindkgs | last post by:
Iam using c lexer that is flex generated and a c++ parser that is bison generated. i have modified the parser to acccept only string input. I am calling the parser function yyparse in a loop and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.