Jump to content

Creating a first xml workflow for poetry books

Tonaya's Photo
Posted Sep 18 2012 11:38 AM
5406 Views

Can anyone offer me advice? I'm a poetry editor who is in way over my head in code. I have purchased Oxygen xml editor and have read just about everything I can find on DTD creation and XML document creation, but much of it is just plain greek to me.

Can anyone tell me

a.) Is there a way I can get some affordable help creating a DTD or other template, because I'm starting to think I just can't figure it out on my own

b.) Get the content from a microsoft word or plain text document into a WSYIWYG editor

c.) Use the DTD/schema/whatever to help code the document for delivery to our designers?!!

Oh if anyone could throw me lifesaver....

Tonaya

Tags:
0 Subscribe


4 Replies

+ 1
  Sanders Kleinfeld's Photo
Posted Sep 18 2012 02:49 PM

Hi Tonaya,

Sure, could you provide some more details about what you're trying to accomplish with your XML workflow for poetry content? You mention that you're coding the content for your designers; are they expecting a specific flavor of XML? DocBook XML (http://www.docbook.org/) is one vocabulary used quite frequently for representing book content, but the markup is specialized for technical book content and may not be ideal for marking up poetry. Another option might be XLDL (http://www.ister.org/code/xldl/), which is geared more toward literature and poetry, with tags like <line> and <stanza>.

In terms of a WYSIWYG editor for XML content, I might suggest you use XMLmind XML Editor (http://www.xmlmind.com/xmleditor/) instead of oXygen, as the interface is a bit more user-friendly and more similar to standard word processing apps like Microsoft Word. It should be possible to copy and paste content from Microsoft Word into XMLmind without too much difficulty. Both XMLMind and oXygen have built-in DTD support, which will automatically enforce the validity rules of the specific XML vocabulary you're using.

Hope this helps,
Sanders
0
  Tonaya's Photo
Posted Sep 19 2012 02:50 PM

Thank you so much--this is really helpful!

So, I was able to open and view that literary schema in Oxygen--super exciting!!

If you don't mind bearing with a complete novice, what would the next step be to open a new xml document for a book manuscript using that schema, and then where would the text of the ms. go? I'm guessing between the "title" elements?

Oxygen has an author view meant for people like me, but it's looking for a css stylesheet to use for this, and either there isn't one or else I'm doing something wrong.

And another question--if there are ampersands in the document, do I need to replace them all to get them to work?

I hope you are getting some great extra credit points for helping me out, in addition to my extremely deep gratitude!!
0
  knappjerome's Photo
Posted Dec 18 2012 12:32 PM

Hey there,

I saw you post about poetry and xml schemas, so I thought I'd ask about your work. I am a poet and visual artist, but I have many friends in the open data world where xml is pretty hot. So some of that has rubbed off on me. I am in the process of putting some of my own work into an xml compliant format, but I would be very interested in knowing your interest in the subject. Feel free to email me directly at: knappjerome@gmail.com

take care,
Jerome
0
  baron122's Photo
Posted Mar 02 2014 08:54 AM

This great Article could you provide some more details about what you're trying to accomplish with your XML workflow for poetry content? You mention that you're coding the content for your designers; are they expecting a specific flavor of XML? We are new to XML and need some guidance for anyone who can help! My problem is that I am unsure how to RECEIVE the xml request. I have the request and response built in basic form displayed below. The problem is HOW TO RECEIVE & PARSE. It may be as simple as a dozen lines of code, but I have not seen anywhere I've searched.

<code>
<%
' My Sample Request ******

WAGconnect = "http://www.truckrepairdirectory.com ....."
set xmldom = server.CreateObject("Microsoft.XMLDOM")
set xmlhttp = server.CreateObject("Microsoft.XMLHTTP")

xmlhttp.open "POST", WAGconnect, false
xmlhttp.setRequestHeader "Man", POST & " " & WAGconnect & " HTTP/1.1"
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlhttp.setRequestHeader "SOAPAction", " http://www.mobiletuckrepair.info ...."

StrSoap = StrSoap & "<?xml version=""1.0"" encoding=""utf-8""?>"
StrSoap = StrSoap & "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"
StrSoap = StrSoap & "<soap:Body>"
StrSoap = StrSoap & "<Get_Categories>"
StrSoap = StrSoap & "<Authentication>"
StrSoap = StrSoap & "<UserID>"&UserID&"</UserID>"
StrSoap = StrSoap & "<Password>"&Password&"</Password>"
StrSoap = StrSoap & "</Authentication>"
StrSoap = StrSoap & "<DealerInfo>"
StrSoap = StrSoap & "<DealerID>"&DealerID&"</DealerID>"
StrSoap = StrSoap & "<StoreID>"&StoreID&"</StoreID>"
StrSoap = StrSoap & "</DealerInfo>"
StrSoap = StrSoap & "<CatInfo>"
StrSoap = StrSoap & "<Dept>"&Dept&"</Dept>"
StrSoap = StrSoap & "</CatInfo>"
StrSoap = StrSoap & "</Get_Categories>"
StrSoap = StrSoap & "</soap:Body>"
StrSoap = StrSoap & "</soap:Envelope>"

WAGRequest = StrSoap

xmlhttp.send(WAGRequest)

%>

</code>


The problem is HERE. not knowing how to listen for and receive the above request at my server. Ive never done it before so I do not know what to look for.


<code>
<%

' My Sample Response ******


StrSoap = StrSoap & "<?xml version=""1.0"" encoding=""utf-8"" ?>"
StrSoap = StrSoap & "<soapenv:Envelope xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">"
StrSoap = StrSoap & "<soap:Body>"
StrSoap = StrSoap & "<Get_Categories xmlns=""urn:externalwsdl"">"
StrSoap = StrSoap & "<Result-Code>"&ResultCode&"</Result-Code>"
StrSoap = StrSoap & "<CatCount>"&CatCount&"</CatCount>"
StrSoap = StrSoap & "<Category>"
StrSoap = StrSoap & "<CatName>"&CatName&"</CatName>"
StrSoap = StrSoap & "<CatDesc>"&CatDesc&"</CatDesc>"
StrSoap = StrSoap & "<CatPic>"&CatPic&"</CatPic>"
StrSoap = StrSoap & "<CatMemo>"&CatMemo&"</CatMemo>"
StrSoap = StrSoap & "</Category>"
StrSoap = StrSoap & "</Get_Categories>"
StrSoap = StrSoap & "</soapenv:Body>"
StrSoap = StrSoap & "</soapenv:Envelope>"
responseTxt = StrSoap
%>
</code>


Any help you could offer would great.