Bugs item #1005888, was opened at 2004-08-09 12:45
Message generated for change (Comment added) made by migueljmol
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1005888&group_id=23629

Category: File Input/Output
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Egon Willighagen (egonw)
>Assigned to: Egon Willighagen (egonw)
Summary: CVS fails to recognize CML files with namespaces

Initial Comment:
The ModelResolver recognizes CML with strings like 
"<molecule", but that will not work for namespaced files 
which have things like "<XXXX:molecule" where XXXX can 
be anything... (well, not really, but from plain text point of 
few this is almost correct)...  
 
We cannot use regular expression can we? 
 
Miguel, comments? 

----------------------------------------------------------------------

>Comment By: Miguel (migueljmol)
Date: 2004-08-15 19:32

Message:
Logged In: YES 
user_id=1050060

Egon, I am assigning this issue to you so that you can
decide whether or not it can be closed. 


----------------------------------------------------------------------

Comment By: Miguel (migueljmol)
Date: 2004-08-12 13:47

Message:
Logged In: YES 
user_id=1050060

OK,

I looked at this and it looks fine to me. 

A few other thoughts:

1) if the string http://www.xml-cml.org/schema/cml2/core is
a requirement for cml2 files then this is the right way to
do it. 

2) if other namespaces need to be supported then we could
add the string ":molecule" and that would work. 

3) in the future we could handle CML as a special case and
quite easily do a special search for <XXXX:


Miguel


----------------------------------------------------------------------

Comment By: Egon Willighagen (egonw)
Date: 2004-08-09 13:51

Message:
Logged In: YES 
user_id=25678

Ok, communication problem... the link is an URI, not a URL... 
and the URI's used for namescapes are not necessariry pointing 
to an existing web page... 
 
It 'points' to the CML2 schema (see 
http://wwmm.ch.cam.ac.uk/moin/CmlCore). 
 
And I want to add this URI as specific string... <cml:molecule is 
really of type <XXXX:molecule... XXXX can be anything, the 'cml' 
was just an example... therefor, we cannot use <cml:molecule... 
 
Egon 

----------------------------------------------------------------------

Comment By: Miguel (migueljmol)
Date: 2004-08-09 13:42

Message:
Logged In: YES 
user_id=1050060

The link to :

http://www.xml-cml.org/schema/cml2/core

does not work for me. It looks like there is no cml2
subdirectory under /schema

I would like to take a look and see what the strings are
like that are in there. 

Yes, go ahead and add <cml:molecule 

----------------------------------------------------------------------

Comment By: Egon Willighagen (egonw)
Date: 2004-08-09 13:35

Message:
Logged In: YES 
user_id=25678

Right...  Should have remembered... :) 
 
It's a ModelResolver problem... the exact problem is this... The 
CMLRSS channels have CML content like <cml:molecule (where 
XXXX is the cml part here) instead of just <molecule. 
Thus, these files do not get recognized as CML :( 
 
Ofcourse I can add <cml:molecule to the list of recognized string, 
but that's not very efficient... how about adding 
http://www.xml-cml.org/schema/cml2/core... this might occur on 
text documents too, but that holds also for other things... 
This URI is the actual namespace to which the cml: points... 
and quite specific to CML2 files... 
 
Shall I add that string to the ModelResolver? 
 
Egon 

----------------------------------------------------------------------

Comment By: Miguel (migueljmol)
Date: 2004-08-09 13:27

Message:
Logged In: YES 
user_id=1050060

Unfortunately, we do not get regular expressions on old JVMs. 

I don't have a clear understanding of the problem ... 

Is the problem just in the ModelResolver ... or does the
CmlReader have the same problem? 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1005888&group_id=23629


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to