Is XInclude in Macports XML catalogs?

Alejandro Imass aimass at yabarana.com
Thu Nov 29 08:49:16 PST 2012


On Wed, Nov 28, 2012 at 7:29 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Nov 28, 2012, at 14:34, Alejandro Imass wrote:
>
>> I can't seem to find a port that has XInclude to add natively (by port
>> command) to my system's XML Catalog. Is there one or do I have to add
>> it to the XML catalog by hand?
>
> What is XInclude?
>
> I did find /opt/local/include/libxml2/libxml/xinclude.h on my drive which is installed by the libxml2 port but I guess that's not what you mean.
>
>

XInclude is a schema that allows for complete document inclusions:
http://www.w3.org/TR/xinclude/

Most of these schemas are either accessible on-line or installed on a
system and uses an XML catalog to resolve URIs and local paths. In
MacPorts, this catalog is in /opt/local/etc/xml

Usually these schemas are installed as a dependency or bundled as part
of a port that needs them. For example if you intall GTK2 and Glade it
will include an XML schema that  is installed in /opt/local/share/xml
and registers itself in the catalog mentioned above.

I would have though that the Docbook 5 XML port would bundle XInclude
but it doesn't so I was wondering if it was in a separate port. As you
stated above, it seems that libxml2 and xsltproc somehow have XInclude
embedded and I ultimately solved my problem by adding the --xinclude
switch to the xsltproc command line. But I am curious as to why there
is no XInclude schema or RelaxNG equivalent installed or installable
via MacPorts.

Hope that answers the question.

-- 
Alejandro Imass


More information about the macports-users mailing list