[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: dynamic document() template problem

Subject: Re: dynamic document() template problem
From: "Sam D. Chuparkoff" <sdc@xxxxxxxxxx>
Date: Mon, 20 Jun 2005 14:33:29 -0700
saxon xi include
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.