Thank you very much for your answer. >I've tested that XXE v4.5 works fine with or without href="" >and also that conversion to HTML, PDF, etc, from within XXE >works fine with or without href="".
Yes, the XXE displays the content of both files without any problems and the DTD validation is successful. When I compared the file versions with a text diff tool, the href="" entry was the only difference. I see that the code is valid to the XInclude standard, but nevertheless our tools do not swallow it. We obviously must adjust these other tools. >So my question is: which tool do you use to convert your >DocBook document to HTML and PDF? We convert DocBook XML to FO and HTML with XSLTProc (version 2006). We format FO to PDF with Antenna House XSL Formatter V4.3 . >[1] To my knowledge, tools such as xsltproc and tools using >Xerces as their XML parser simply do not support an XInclude >pointing to a part of the same document, and this with or >without href="". Mmh, this would be a pity. With Xincludes to external XML files it has worked fine with hundreds of documents. I will continue to check that. >[2] xpointer="element(/1/2/2/5/1/1/1)" is inherently fragile. >If you change anything in your document, the included element >could vanish. We recommend instead to give an ID to your >common terms and then to include them by their IDs. I agree. When I tried to find the cause for the errors, I used elements with an unique ID. First I thought, the errors could be caused by double IDs, but obviously were not. >No. Moreover we no longer support XXE v3.5.2, which is a quite >old version of XXE (February 19, 2007). I also agree. We have tested XXE V 4.5 and requested our department to buy it. They just have not done it yet, unfortunately. Thanks for the detailed information, now I got more input to find a solution for that problem. Regards, Martin ------------------------------------------- >Von: xmleditor-support-bounces at xmlmind.com >[mailto:xmleditor-support-bounces at xmlmind.com] Im Auftrag von >Hussein Shafie >Gesendet: Dienstag, 27. Oktober 2009 19:30 >An: Schramm, Martin >Cc: xmleditor-support at xmlmind.com >Betreff: Re: [XXE] XXE 3.5.2 adds unwanted entry in DocBook >4.5 xi:include > >Schramm, Martin wrote: >> >> today I have detected an unknown feature of the XXE 3.5.2, I >ask you to take a look on: >> In my DocBook 4.5 XML file I have xincludes that reference >on DocBook elements WITHIN the document. These are used like >variables for terms that might be altered very often at all >locations in the document (e.g. changing department names). >> When I have got everything set in the document, the output >in FO/PDF and HTML is fine, all terms are displayed correctly. >But oddly, when I change anything minor and save the document >again in the XXE 3.5.2, it adds an unwanted entry 'href=""'. >This entry then causes errors in the FO/PDF and HTML output. >> >> Before: >> <title>Test of xincludes <xi:include >> xmlns:xi="http://www.w3.org/2001/XInclude" >> xpointer="element(/1/2/2/5/1/1/1)" /></title> > >This XInclude is correct. > > > >> After: >> <title>Test of xincludes <xi:include href="" >> xmlns:xi="http://www.w3.org/2001/XInclude" >> xpointer="element(/1/2/2/5/1/1/1)" /></title> >> > >This XInclude is correct too. href="" is allowed by the >XInclude standard. Excerpts of >http://www.w3.org/TR/xinclude/#include_element >--- >The href attribute is optional; the absence of this attribute >is the same as specifying href="", that is, the reference is >to the same document. >--- > >I've tested that XXE v4.5 works fine with or without href="" >and also that conversion to HTML, PDF, etc, from within XXE >works fine with or without href="". > >I'm sure that this is also the case with ancient XXE v3.5.2. >So my question is: which tool do you use to convert your >DocBook document to HTML and PDF? > >In fact, I doubt that href="" could be the cause of your problem. > >Two ideas: > >[1] To my knowledge, tools such as xsltproc and tools using >Xerces as their XML parser simply do not support an XInclude >pointing to a part of the same document, and this with or >without href="". > >[2] xpointer="element(/1/2/2/5/1/1/1)" is inherently fragile. >If you change anything in your document, the included element >could vanish. We recommend instead to give an ID to your >common terms and then to include them by their IDs. > > > >> Is there a way to stop it from doing so? > >No. Moreover we no longer support XXE v3.5.2, which is a quite >old version of XXE (February 19, 2007). > >By the way, XXE v4.5 also adds href="" and for now, we fail to >see a good reason to remove this attribute. > > > > > > >-- >XMLmind XML Editor Support List >xmleditor-support at xmlmind.com >http://www.xmlmind.com/mailman/listinfo/xmleditor-support > > ******************************************* Harman Becker Automotive Systems GmbH Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Huls, Michael Mauser Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | Local Court Mannheim: Register No. 361395 ******************************************* Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden. *******************************************

