Re: [xml] XInclude processing in XSLT stylesheet (xsltproc)
- From: "William M. Brack" <wbrack mmm com hk>
- To: xml gnome org
- Cc: "Dave Broudy" <dave broudy net>
- Subject: Re: [xml] XInclude processing in XSLT stylesheet (xsltproc)
- Date: Mon, 12 Jan 2004 21:23:19 +0800 (HKT)
Dave Broudy said:
When the --xinclude option is passed to xsltproc, is XInclude
processing
turned on for the stylesheet as well as the xml input file? It seems
like
it isn't. xmllint --xinclude processes the include in my stylesheet
and
outputs a stylesheet that would do what I want. But xsltproc
--xinclude
just outputs the xi:include element and it's content. A simplified
example
is below.
<snip>
Dave Broudy dave broudy net
xsltproc currently does not enable XInclude, and has no switch for
doing so. Personally, I don't think I would like to have a flag
which enables XInclude for both the xsl and the xml input files -
what about when you want to use a stylsheet (which has XIncludes) to
transform the xincludes within the xml file? 2 switches?
If your major concern is to have XIncludes within the stylesheet,
note that you can use xmllint to do the "including" and "pipe" the
output to xsltproc, e.g.
xmllint --xinclude mystylesheet.xsl | xsltproc - myfile.xml
HTH
Bill
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]