Re: Straghtforward XML export?

2012-05-17 Thread Nico Williams
FWIW, I've put up a github repo with my LyX-xml2rfc tool, though it's still a work in progress: https://github.com/nicowilliams/lyx2rfc BTW, I can't get lyx -e lyxhtml ... to work. lyx -e xhtml does work, but then there are some differences from the LyXHTML option in the File-Export menu. The

Re: Straghtforward XML export?

2012-05-17 Thread Nico Williams
FWIW, I've put up a github repo with my LyX-xml2rfc tool, though it's still a work in progress: https://github.com/nicowilliams/lyx2rfc BTW, I can't get lyx -e lyxhtml ... to work. lyx -e xhtml does work, but then there are some differences from the LyXHTML option in the File-Export menu. The

Re: Straghtforward XML export?

2012-05-17 Thread Nico Williams
FWIW, I've put up a github repo with my LyX->xml2rfc tool, though it's still a work in progress: https://github.com/nicowilliams/lyx2rfc BTW, I can't get "lyx -e lyxhtml ..." to work. lyx -e xhtml does work, but then there are some differences from the LyXHTML option in the File->Export menu.

Re: Straghtforward XML export?

2012-05-12 Thread Nico Williams
Well, thanks lots for your help. I have something that's very close. Close enough that I can now author I-Ds in LyX. I've found one more bug in the LyX XHTML output, and I filed a bug for it (bibitem anchor generation is not working properly), and I can work around it. Cheers! Nico --

Re: Straghtforward XML export?

2012-05-12 Thread Nico Williams
Well, thanks lots for your help. I have something that's very close. Close enough that I can now author I-Ds in LyX. I've found one more bug in the LyX XHTML output, and I filed a bug for it (bibitem anchor generation is not working properly), and I can work around it. Cheers! Nico --

Re: Straghtforward XML export?

2012-05-12 Thread Nico Williams
Well, thanks lots for your help. I have something that's very close. Close enough that I can now author I-Ds in LyX. I've found one more bug in the LyX XHTML output, and I filed a bug for it (bibitem anchor generation is not working properly), and I can work around it. Cheers! Nico --

Re: Straghtforward XML export?

2012-05-11 Thread Nico Williams
On Thu, May 10, 2012 at 10:09 AM, Richard Heck rgh...@comcast.net wrote: I don't know how to create a custom inset that does.. [...] Try putting this into Local Layout, under DocumentSettings: Excellent, that worked great. I guess if you want these as metadata, you should also add:    

Re: Straghtforward XML export?

2012-05-11 Thread Nico Williams
On Thu, May 10, 2012 at 10:09 AM, Richard Heck rgh...@comcast.net wrote: I don't know how to create a custom inset that does.. [...] Try putting this into Local Layout, under DocumentSettings: Excellent, that worked great. I guess if you want these as metadata, you should also add:    

Re: Straghtforward XML export?

2012-05-11 Thread Nico Williams
On Thu, May 10, 2012 at 10:09 AM, Richard Heck wrote: >> I don't know how to create a custom inset that does.. [...] > > Try putting this into Local Layout, under Document>Settings: Excellent, that worked great. > I guess if you want these as metadata, you should also add: >

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing! I'm talking about Insert-Formatting-Vertical Space. I suspect that there are other such things that aren't preserved.

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:14 AM, Nico Williams wrote: On Tue, May 8, 2012 at 10:58 PM, Richard Heckrgh...@comcast.net wrote: On 05/08/2012 07:30 PM, Nico Williams wrote: LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves custom

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 10:02 AM, Richard Heck rgh...@comcast.net wrote: On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!  I'm talking about Insert-Formatting-Vertical

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 11:52 AM, Nico Williams wrote: On Thu, May 10, 2012 at 10:02 AM, Richard Heckrgh...@comcast.net wrote: On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 3:31 PM, Richard Heck rgh...@comcast.net wrote: Actually, it looks like this got fixed a while ago. In a simple text document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you show is certainly fine. If you want to post a

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 04:52 PM, Nico Williams wrote: On Thu, May 10, 2012 at 3:31 PM, Richard Heckrgh...@comcast.net wrote: Actually, it looks like this got fixed a while ago. In a simple text document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you show

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 8:27 PM, Richard Heck rgh...@comcast.net wrote: On 05/10/2012 04:52 PM, Nico Williams wrote: On Thu, May 10, 2012 at 3:31 PM, Richard Heckrgh...@comcast.net  wrote: Here's a LyX snippet: OK, I see the problem. The vertical space gets moved, for reasons that probably

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing! I'm talking about Insert-Formatting-Vertical Space. I suspect that there are other such things that aren't preserved.

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:14 AM, Nico Williams wrote: On Tue, May 8, 2012 at 10:58 PM, Richard Heckrgh...@comcast.net wrote: On 05/08/2012 07:30 PM, Nico Williams wrote: LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves custom

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 10:02 AM, Richard Heck rgh...@comcast.net wrote: On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!  I'm talking about Insert-Formatting-Vertical

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 11:52 AM, Nico Williams wrote: On Thu, May 10, 2012 at 10:02 AM, Richard Heckrgh...@comcast.net wrote: On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 3:31 PM, Richard Heck rgh...@comcast.net wrote: Actually, it looks like this got fixed a while ago. In a simple text document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you show is certainly fine. If you want to post a

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 04:52 PM, Nico Williams wrote: On Thu, May 10, 2012 at 3:31 PM, Richard Heckrgh...@comcast.net wrote: Actually, it looks like this got fixed a while ago. In a simple text document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you show

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 8:27 PM, Richard Heck rgh...@comcast.net wrote: On 05/10/2012 04:52 PM, Nico Williams wrote: On Thu, May 10, 2012 at 3:31 PM, Richard Heckrgh...@comcast.net  wrote: Here's a LyX snippet: OK, I see the problem. The vertical space gets moved, for reasons that probably

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing! I'm talking about Insert->Formatting->Vertical Space. I suspect that there are other such things that aren't

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/09/2012 02:14 AM, Nico Williams wrote: On Tue, May 8, 2012 at 10:58 PM, Richard Heck wrote: On 05/08/2012 07:30 PM, Nico Williams wrote: LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 10:02 AM, Richard Heck wrote: > On 05/09/2012 02:29 AM, Nico Williams wrote: >>> [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve >>> vertical spacing in any way, not even as horizontal spacing!  I'm >>> talking about

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 11:52 AM, Nico Williams wrote: On Thu, May 10, 2012 at 10:02 AM, Richard Heck wrote: On 05/09/2012 02:29 AM, Nico Williams wrote: [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 3:31 PM, Richard Heck wrote: > Actually, it looks like this got fixed a while ago. In a simple text > document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you show is certainly fine. > If you want to post

Re: Straghtforward XML export?

2012-05-10 Thread Richard Heck
On 05/10/2012 04:52 PM, Nico Williams wrote: On Thu, May 10, 2012 at 3:31 PM, Richard Heck wrote: Actually, it looks like this got fixed a while ago. In a simple text document I get: I'm running LyX 2.0.0. The vspace I had was in an author inset, FWIW. The output you

Re: Straghtforward XML export?

2012-05-10 Thread Nico Williams
On Thu, May 10, 2012 at 8:27 PM, Richard Heck wrote: > On 05/10/2012 04:52 PM, Nico Williams wrote: >> On Thu, May 10, 2012 at 3:31 PM, Richard Heck  wrote: >> Here's a LyX snippet: > > OK, I see the problem. The vertical space gets moved, for reasons >

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
On Tue, May 8, 2012 at 10:58 PM, Richard Heck rgh...@comcast.net wrote: On 05/08/2012 07:30 PM, Nico Williams wrote: LyXHTML looks very promising.  It certainly preserves everything I have in my [admittedly small] test file.  If it preserves custom inset names then I could probably use custom

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
[Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!  I'm talking about Insert-Formatting-Vertical Space.  I suspect that there are other such things that aren't preserved.  For now I'll live.  Vertical space is

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
On Tue, May 8, 2012 at 10:58 PM, Richard Heck rgh...@comcast.net wrote: On 05/08/2012 07:30 PM, Nico Williams wrote: LyXHTML looks very promising.  It certainly preserves everything I have in my [admittedly small] test file.  If it preserves custom inset names then I could probably use custom

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
[Actually, I'm noticing one problem with LyXHTML: it doesn't preserve vertical spacing in any way, not even as horizontal spacing!  I'm talking about Insert-Formatting-Vertical Space.  I suspect that there are other such things that aren't preserved.  For now I'll live.  Vertical space is

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
On Tue, May 8, 2012 at 10:58 PM, Richard Heck wrote: > On 05/08/2012 07:30 PM, Nico Williams wrote: >> LyXHTML looks very promising.  It certainly preserves everything I >> have in my [admittedly small] test file.  If it preserves custom inset >> names then I could probably

Re: Straghtforward XML export?

2012-05-09 Thread Nico Williams
> [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve > vertical spacing in any way, not even as horizontal spacing!  I'm > talking about Insert->Formatting->Vertical Space.  I suspect that > there are other such things that aren't preserved.  For now I'll live. >  Vertical space

Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde mi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves custom inset names then I

Re: Straghtforward XML export?

2012-05-08 Thread Richard Heck
On 05/08/2012 07:30 PM, Nico Williams wrote: On Tue, May 8, 2012 at 12:40 AM, Guenter Mildemi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file.

Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde mi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves custom inset names then I

Re: Straghtforward XML export?

2012-05-08 Thread Richard Heck
On 05/08/2012 07:30 PM, Nico Williams wrote: On Tue, May 8, 2012 at 12:40 AM, Guenter Mildemi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file.

Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde wrote: > So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test file. If it preserves custom inset names then I

Re: Straghtforward XML export?

2012-05-08 Thread Richard Heck
On 05/08/2012 07:30 PM, Nico Williams wrote: On Tue, May 8, 2012 at 12:40 AM, Guenter Milde wrote: So how about XHTML as starting point for your XSLT transformations? LyXHTML looks very promising. It certainly preserves everything I have in my [admittedly small] test

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: The LaTeX-XML tools I've tried leave me... sad. They tend to drop some things. For example: vertical space, which becomes a simple newline in a paragraph's text. It would be better to translate vertical space into vspace/ elements -- that'd be much, much more useful in

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: The LaTeX-XML tools I've tried leave me... sad.  They tend to drop some things.  For example: vertical space, which becomes a simple newline in a paragraph's text.  It would be better to translate vertical

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: This I hadn't seen. One thing to note is that the LyX I'm running (on Ubuntu) has no option to save as or export to SGML or DocBook. I gather from the link you gave me that SGML and Docbook are natively supported export formats, so I guess Ubuntu's build must be lacking

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: How does LyX represent documents internally?  If it does it in an objectified form then it should be fairly straightforward to walk the document tree and emit XML, no?  Or, looking at .lyx files, maybe it

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:41 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: This I hadn't seen.  One thing to note is that the LyX I'm running (on Ubuntu) has no option to save as or export to SGML or DocBook.  I gather from the link you gave me that SGML and Docbook are natively

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: How does LyX represent documents internally?  If it does it in an objectified form then it should be fairly straightforward to walk the document tree and emit XML, no?  Or, looking

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
No, i got that. I don't actually care for docbook. I want a straightforward translation to XML that preserves all data and metadata. If I need a specific schema I can always use XSLT to get output in that form. Nico --

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:56 PM, Nico Williams n...@cryptonector.com wrote: Ah, that works.  Thanks!  I'll take a look and see if the native DocBook export works for me. Nope, it still doesn't allow more than one author in docbook, though it does merge all the authors listed in the LyX document

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
Is there canonical documentation of the LyX file format? I can't find it... I did find this: http://wiki.lyx.org/Devel/LyXFileFormat , but that's just a changelog. There's nothing else obvious in http://wiki.lyx.org/Devel/ ... The development/FORMAT file in the source tree is also a changelog.

Re: Straghtforward XML export?

2012-05-07 Thread Guenter Milde
On 2012-05-07, Nico Williams wrote: [-- Type: text/plain, Encoding: --] No, i got that. I don't actually care for docbook. I want a straightforward translation to XML that preserves all data and metadata. If I need a specific schema I can always use XSLT to get output in that form. So how

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde mi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? Otherwise, you could use the native XHTML formatter as a model for adding native XML output. Another starting point would be the external elyxer tool:

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: The LaTeX-XML tools I've tried leave me... sad. They tend to drop some things. For example: vertical space, which becomes a simple newline in a paragraph's text. It would be better to translate vertical space into vspace/ elements -- that'd be much, much more useful in

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: The LaTeX-XML tools I've tried leave me... sad.  They tend to drop some things.  For example: vertical space, which becomes a simple newline in a paragraph's text.  It would be better to translate vertical

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: This I hadn't seen. One thing to note is that the LyX I'm running (on Ubuntu) has no option to save as or export to SGML or DocBook. I gather from the link you gave me that SGML and Docbook are natively supported export formats, so I guess Ubuntu's build must be lacking

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: How does LyX represent documents internally?  If it does it in an objectified form then it should be fairly straightforward to walk the document tree and emit XML, no?  Or, looking at .lyx files, maybe it

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:41 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: This I hadn't seen.  One thing to note is that the LyX I'm running (on Ubuntu) has no option to save as or export to SGML or DocBook.  I gather from the link you gave me that SGML and Docbook are natively

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda sa...@lyx.org wrote: Nico Williams wrote: How does LyX represent documents internally?  If it does it in an objectified form then it should be fairly straightforward to walk the document tree and emit XML, no?  Or, looking

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
No, i got that. I don't actually care for docbook. I want a straightforward translation to XML that preserves all data and metadata. If I need a specific schema I can always use XSLT to get output in that form. Nico --

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:56 PM, Nico Williams n...@cryptonector.com wrote: Ah, that works.  Thanks!  I'll take a look and see if the native DocBook export works for me. Nope, it still doesn't allow more than one author in docbook, though it does merge all the authors listed in the LyX document

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
Is there canonical documentation of the LyX file format? I can't find it... I did find this: http://wiki.lyx.org/Devel/LyXFileFormat , but that's just a changelog. There's nothing else obvious in http://wiki.lyx.org/Devel/ ... The development/FORMAT file in the source tree is also a changelog.

Re: Straghtforward XML export?

2012-05-07 Thread Guenter Milde
On 2012-05-07, Nico Williams wrote: [-- Type: text/plain, Encoding: --] No, i got that. I don't actually care for docbook. I want a straightforward translation to XML that preserves all data and metadata. If I need a specific schema I can always use XSLT to get output in that form. So how

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde mi...@users.sf.net wrote: So how about XHTML as starting point for your XSLT transformations? Otherwise, you could use the native XHTML formatter as a model for adding native XML output. Another starting point would be the external elyxer tool:

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: > The LaTeX->XML tools I've tried leave me... sad. They tend to drop > some things. For example: vertical space, which becomes a simple > newline in a paragraph's text. It would be better to translate > vertical space into elements -- that'd be much, much more > useful in

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda wrote: > Nico Williams wrote: >> The LaTeX->XML tools I've tried leave me... sad.  They tend to drop >> some things.  For example: vertical space, which becomes a simple >> newline in a paragraph's text.  It would be better to translate

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: > This I hadn't seen. One thing to note is that the LyX I'm running (on > Ubuntu) has no option to save as or export to SGML or DocBook. I > gather from the link you gave me that SGML and Docbook are natively > supported export formats, so I guess Ubuntu's build must be

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda wrote: > Nico Williams wrote: >> How does LyX represent documents internally?  If it does it in an >> objectified form then it should be fairly straightforward to walk the >> document tree and emit XML, no?  Or, looking at .lyx files,

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:41 PM, Pavel Sanda wrote: > Nico Williams wrote: >> This I hadn't seen.  One thing to note is that the LyX I'm running (on >> Ubuntu) has no option to save as or export to SGML or DocBook.  I >> gather from the link you gave me that SGML and Docbook are

Re: Straghtforward XML export?

2012-05-07 Thread Pavel Sanda
Nico Williams wrote: > On Mon, May 7, 2012 at 12:07 PM, Pavel Sanda wrote: > > Nico Williams wrote: > >> How does LyX represent documents internally?  If it does it in an > >> objectified form then it should be fairly straightforward to walk the > >> document tree and emit XML, no?

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
No, i got that. I don't actually care for docbook. I want a straightforward translation to XML that preserves all data and metadata. If I need a specific schema I can always use XSLT to get output in that form. Nico --

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Mon, May 7, 2012 at 12:56 PM, Nico Williams wrote: > Ah, that works.  Thanks!  I'll take a look and see if the native > DocBook export works for me. Nope, it still doesn't allow more than one author in docbook, though it does merge all the authors listed in the LyX

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
Is there canonical documentation of the LyX file format? I can't find it... I did find this: http://wiki.lyx.org/Devel/LyXFileFormat , but that's just a changelog. There's nothing else obvious in http://wiki.lyx.org/Devel/ ... The development/FORMAT file in the source tree is also a changelog.

Re: Straghtforward XML export?

2012-05-07 Thread Guenter Milde
On 2012-05-07, Nico Williams wrote: > [-- Type: text/plain, Encoding: --] > No, i got that. I don't actually care for docbook. I want a straightforward > translation to XML that preserves all data and metadata. If I need a > specific schema I can always use XSLT to get output in that form. So

Re: Straghtforward XML export?

2012-05-07 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde wrote: > So how about XHTML as starting point for your XSLT transformations? > > Otherwise, you could use the native XHTML formatter as a model for adding > "native XML" output. > > Another starting point would be the external