xsl-list
[Top] [All Lists]

Re: dynamic document() template problem

2005-06-20 14:33:29
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="http://www.w3.org/2001/XInclude";
    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

or

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

sdc



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>