OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] xinclude problem with docbook under eclipse


Hello Stefan,

> > 1) eclipse marks the book-tag as invalide ...
> to solve this problem I enhanced the Doctype declaration. Here my
> approach:
> ...

Very nice. Works for me too.

> > 2) main problem: the include doesn't work ...
> Here it depends on the XSLT processor you use. Here is chapter from
> the "The Complete Guide" about this:
> http://www.sagehill.net/docbookxsl/Xinclude.html

I use the newest version of xalan. The book describes how to call the processors with the commandline. Because Ant does that in my case i will try Michiel's approach.

> But nevertheless one problem remains. Eclipse itself doesn't resolve
> the xi:include elements. So references between the files will be shown
> as not existing IDs.

OK, i can live with that.

Thanks,
/Stephan


-------- Original-Nachricht --------
> Datum: Thu, 28 Aug 2008 15:47:11 +0200
> Von: Stefan Heuer <sh127@gmx.de>
> An: docbook-apps@lists.oasis-open.org
> Betreff: Re: [docbook-apps] xinclude problem with docbook under eclipse

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Hi Stephan,
> 
> Stephan Schröder schrieb:
> > i have 2 problems:
> > 1) eclipse marks the book-tag as invalide because there it does't
> recognise
> > the xi:include-tag. But there is not docbookxi.dtd in the docbook-5.0
> > distribution, just a docbookxi.rng. I haven't used relaxNG yet so i'd
> like
> > to stick with dtd.
> to solve this problem I enhanced the Doctype declaration. Here my
> approach:
> 
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
> "../dtd/docbook-xml-4.4/docbookx.dtd" [
> <!ELEMENT xi:include (xi:fallback?)>
> <!ATTLIST xi:include
>     xmlns:xi   CDATA       #FIXED    "http://www.w3.org/2001/XInclude";
>     href       CDATA       #REQUIRED
>     parse      (xml|text)  "xml"
>     encoding   CDATA       #IMPLIED >
> <!ELEMENT xi:fallback ANY>
> <!ATTLIST xi:fallback
>     xmlns:xi   CDATA   #FIXED   "http://www.w3.org/2001/XInclude"; >
> <!-- this three lines defines, where an xi:include element could
> appear -->
> <!-- inside the book element -->
> <!ENTITY % local.chapter.class "| xi:include">
> <!-- inside para, programlisting, literallayout, etc. -->
> <!ENTITY % local.para.char.mix "| xi:include">
> <!-- inside bookinfo, chapterinfo, etc. -->  
> <!ENTITY % local.info.class "| xi:include">
> ]>
> 
> > 2) main problem: the include doesn't work, instead of the file
> > "&lt;xi:include&gt;&lt;/xi:include&gt; "
> > is included. I get this warning:
> > "[xslt] ...\docbook-xsl-1.74.0\html\docbook.xsl:89:16: Warning! Element
> > include in namespace 'http://www.w3.org/2001/XInclude' encountered in
> book,
> > but no template matches.
> 
> Here it depends on the XSLT processor you use. Here is chapter from
> the "The Complete Guide" about this:
> http://www.sagehill.net/docbookxsl/Xinclude.html
> 
> But nevertheless one problem remains. Eclipse itself doesn't resolve
> the xi:include elements. So references between the files will be shown
> as not existing IDs. I've heard that some commercial tools can resolve
> such references, but such things are expensive :-(.
> 
> So long
> 
> Stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>  
> iQIcBAEBAgAGBQJItqxeAAoJEJeVaXEGNEQE2A0P/2Eb4cOsuz0xipliMkSgqYHI
> cIipRbQs2QCqSjDfbD2Ah9enWSHCgmHiZ7bgcIRBnO0O2G07v56yb1kdcio1Ye/y
> tx37HaKC0nxLMm03lkiWmM40SxmGmpR2uqK2Aq27I+5FX2/CzLMBhqpds6tdPfuP
> 7pBhV/vnUciS2j9MbKfXTLnkUau7IEv3Hnb7cVUD4yNxYkGR2090TfqaYsGFk2jU
> 7w1Tih5Gcpd2wPSriZ5XrWpqvaRblx3zf4W8MmkbDrTD01zXXaTxw4exw3a7ktLY
> 0mW9KgmXO3pza9A3rLtnq5rkgk8+jJPq1JwhR8OyprU1cV7h8HKcY4ayJ9RVqHrw
> NjPN45I5m1NfzNRtV0I3IjTD4kQiyDwZOo143by71otcVVzsxGIai53lj6HtzObk
> X+rAqqm5ow5Dg5R2bLlu0bPtmtmsX1jRwctXrr5ZDewold5oNV1QtNqkYjshJyAQ
> AD/zv/zkzkqcwQ04xkFrXbuhZy6ulFgyPbxz4gVW+AQsDUAF3/abUdpP4FkWU/ZC
> P0wvBiqmeymFXZiut1TIF8VkoWQtE9j/IEyVvQMz0cKDMlT9qiSavZniS9dnq69g
> Fa0EH4zdFmEMAqMgpLlREyhumzujyh1PjsDeD4cAIe80e1U9y3iO7xemk4NbegHc
> c8v4yjwJLKb71U9XLQz6
> =oXE7
> -----END PGP SIGNATURE-----
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]