Hello, one of my primary objectives is to persuade you to incorporate some changes in LyX that will render my sed script
http://www.karakas-online.de/mySGML/sedscr obsolete. For those of you who are fluent in sed, you will see that I will start one thread for each substitution in the sedscr file above. ;-) So let's start: I propose to delete every occurence of <anchor id="some-id"> Openjade does not support them, so let's forget them! Otherwise, I have to process the exported SGML file with the following sed commands: # Valid only for LyX v. 1.3.4 # Substitute # # <sect1> # <title> # some title <anchor id="some label" > # # with # # <sect1 id="some label" > # <title> # some title # /^[^<]*<sec/{ N N s/<\(sect[^>]*\)>\([ \t\n\r]*<title>[ \n]*[^<]*\)<anchor \([^>]*\)>/<\1 \3>\2/ P D } Why shall I have to do this? Why not produce directly <sect1 id="some-id"> instead of the current <sect1> <anchor id="some-id"> ? Openjade will NOT accept xrefs to anchors, spitting the error: [xref to ANCHOR unsupported] so I think it is time to change this. The same goes for tables: WRONG: <table><title> <anchor id="some-id">Some title </title> RIGHT: <table id="some-id"> <title> Some title </title> And also with all other elements! That is, for the element <element>: WRONG: <element><title> <anchor id="some-id">Some title </title> </element> RIGHT: <element id="some-id"> <title> Some title </title> </element> As soon as you implement this, I will not need those sed lines in my sedscr! Please tell me what you think. Chris -- Regards Chris Karakas http://www.karakas-online.de