Posted by sanduhrs on April 7, 2006 at 9:09am
Jump to:
| Project: | Export OPML |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Unfortunately I only get a blank page when expoerting my books as OPML.
The source looks like:
<opml version='1.0'>
<head>
<title></title>
</head>appreciated
<body>
<outline type="id:node-1"
text="booktitle">
<outline type="id:node-2"
text="chapter01">
</outline>
<outline type="id:node-3"
text="chapter02">
</outline>
</outline>
</body>
</opml>So the books content has vanished.
Usind Drupal CVS and Export OPML CVS.
Don't know where the fault is, any help appreciated.
vg
Comments
#1
Hi sanduhrs,
thanks for your feedback.
The blank page is, admittedly, disconcerting. I'll see if I can present the OPML as a downloadable file, perhaps.
At this point, I'm capturing only the titles of sections; i.e., the output truly is an OUTLINE.
I'm not sure how best to capture also the section content in OPML. Any thoughts? What tools are you using to work with the OPML?
Regards, Djun
#2
Hey Djun,
of course you're right, OPML is for outlining - my fault.
But you could provide some more information within the outlining like the bookowner and contact information, creation dates and links to the book-nodes.
e.g.
<?xml version="1.0" encoding="utf-8"?><opml version="1.0">
<head>
<title>booktitle.opml</title>
<dateCreated>Sut, 08 Apr 2006 11:05:00 GMT</dateCreated>
<dateModified>Sut, 08 Apr 2006 12:05:00 GMT</dateModified>
<ownerName>username</ownerName>
<ownerId>http://www.example.com/user/1/contact</ownerId>
</head>
<body>
<outline text="booktitle" created="Sut, 08 Apr 2006 11:05:00 GMT" type="link" url="http://www.example.com/booktitle">
<outline text="section01" created="Sut, 08 Apr 2006 11:05:00 GMT" type="link" url="http://www.example.com/booktitle/section01" />
<outline text="section02" created="Sut, 08 Apr 2006 11:05:00 GMT" type="link" url="http://www.example.com/booktitle/section02" />
</outline>
</body>
</opml>
Additionally I'm not shure about your type definitions (type="id:node-1") I dont't believe they will validate and i think they refer to the following elements in the outline, not to the books content itself.
There seems to be a description element defined for type="rss". Perhaps there's something similar for other types, which -could be used to integrate the section content.
vg
#3
I'm changing the title of this issue to reflect the remaining areas of concern in the initial report.
The OPML spec (http://www.opml.org/spec) seems pretty vague: the type attribute is not enumerated or otherwise constrained, so the way I'm currently using it should validate OK.
I propose to add author and date information, and a title, to begin with.