Re: [xsl] dynamic document() template problem

Subject: Re: [xsl] dynamic document() template problem
From: "Sam D. Chuparkoff" <sdc@xxxxxxxxxx>
Date: Mon, 20 Jun 2005 14:33:29 -0700
On Mon, 2005-06-20 at 12:29 -0700, Arian Hojat wrote:
> Hello i am trying to base a template rule off an
> attribute in my XML to which chooses nodes to apply 
> ###my XML###
> <include href="fbackground.xml"
> nodes="fb/section1/*"/>

You might also consider using XInclude. This element in your xml would
be replaced with:

  <xi:include xmlns:xi="";
    href="test2.xml" xpointer="xpointer(/Document/fb/section1/*)"/>

This works in libxml2 today. So then you have the option of:

xsltproc --xinclude transform.xsl test.xml


xmllint --xinclude test.xml | \
  java net.sf.saxon.Transform - transform.xsl


Current Thread