----Security_Multipart(Mon_Mar_14_09_37_29_2005_967)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Klaus Heinz <k.heinz.maer.fuenf@onlinehome.de> wrote
in <20050313191032.GH426@silence.homedns.org>:
k> There is a XML/XSLT specification called XInclude which is supported by
k> xsltproc. This lets us even include single XML elements (eg, the last 5
k> news items) from a referenced XML document.
k>
k> It looks like this:
k>
k> <xi:include
k> xmlns:xi="http://www.w3.org/2001/XInclude"
k> href="news.xml#xpointer(/webpage/newspage/portnewsitem[1])" />
k> ...
k> <xi:include
k> xmlns:xi="http://www.w3.org/2001/XInclude"
k> href="news.xml#xpointer(/webpage/newspage/portnewsitem[5])" />
Please use the following form:
<xi:include
xmlns:xi="http://www.w3.org/2001/XInclude"
href="news.xml" xpointer="xpointer(/webpage/newspage/portnewsitem[5])" />
Using the href attribute to select part of a document is no longer
supported in the XInclude standard (it was in some earlier draft versions,
though).
k> Is it ok to add
k> XSLTPROC_ARGS+= --xinclude
k>
k> to htdocs/share/mk/web.site.mk? Or should we only do this in those
k> directories where we actually use XInclude?
I think it is no problem to add it to web.site.mk.
--
| Hiroki SATO
----Security_Multipart(Mon_Mar_14_09_37_29_2005_967)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQBCNNzJTyzT2CeTzy0RApvIAJwNTHV65iAKpHLShMMlgHK2uCCjbgCeP1sS
EXXV+57T9Jyhr4CFO++dsqI=
=gryE
-----END PGP SIGNATURE-----
----Security_Multipart(Mon_Mar_14_09_37_29_2005_967)----