From: Artur H. <ko...@pl...> - 2003-08-31 06:35:13
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 31 of August 2003 05:16, Cameron Shorter wrote: > On Saturday 30 Aug 2003 11:36 pm, Artur Hefczyc wrote: > > Now we want to include in master document everything apart from > > <sectioninfo/> element with it's content. > > We can include content of above document apart from <sectioninfo/> > > with following command: > > <xi:include > > href="samplefile.xml#xpointer(/section/*[name()!='sectioninfo']/descendan > >t- or-self::*)" xmlns:xi="http://www.w3.org/2001/XInclude" /> > > Good idea, I like it. I don't know if you know XPath, to effectively use above idea, XPath at least basic XPath knowledge is necessary and above sample looks complicated even for somebody familiar with it. (Probably there is simpler version of above expression.) I have found excellent site: http://www.zvon.org/xxl/XPathTutorial/General/examples.html and there is also self-training tool where you can experiment with XPath expressions: http://www.zvon.org:9001/saxon/cgi-bin/XLab/XML/xlabIndex.html?stylesheetFile=XSLT/xlabIndex.xslt Artur - -- Artur Hefczyc "Don't change people, just live with them." Open Source Developer: http://www.geotools.org/ http://generguide.sourceforge.net/ http://wttools.sourceforge.net/ http://maven-plugins.sourceforge.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/UZb80/6x1bjSKPkRAkEEAJ9GtzWDAGsI2Z6/uRBUdGYsVBy3zACfdtoY 1lDYisitUMRA5Kc8hlk9aM8= =/pXQ -----END PGP SIGNATURE----- |