This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: which file to include or copy or copy-of


"Aniceto Lopez" <aniceto@overthenet.tv> wrote:
> //// How can I
> //// <xsl:include href="THE ACTIVE FILE=1"/> or
> //// <xsl:copy select="THE ACTIVE FILE=1"/> or
> //// <xsl:copy-of select="THE ACTIVE FILE=1"/>

Use the document() function and copy-of:

  <xsl:copy-of select="document(/importfiles/file[@active=1])"/>

This will copy the content of all files which has been set active
into the result.
There may be issues with the directory the files are searched
in, by default the directory where the XSL file came from is
used. Try
  <xsl:copy-of select="document(/importfiles/file[@active=1],/)"/>
to get files form the same directory as the  source XML.

HTH
J.Pietschmann

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]