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

Re: troubles with include

Subject: Re: troubles with include
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 14:37:39 +0000
troubles with include file
Hi Jakub,

> I have the following file and I would like to put the
> <deioMSH:MSH>...</deioMSH:MSH> part to some other file and just
> include it, but what should be then the <xsl:value-of >?

Say you put deioMSH:MSH into a file called deioMSH.xml, which would
look like:

<deioMSH:MSH
    xmlns:deioMSH="http://www.deio.net/Delta/XSLT/include/MSH">
  <sendingApp>Delta</sendingApp>
  <sendingFac>XYZ</sendingFac>
</deioMSH:MSH>

You could access this file with the document() function in just the
same way as you're accessing the stylesheet document. Just this time
you have to (a) use the name of the XML file as the argument to the
document() function rather than the empty string and (b) not include
the step that you need for the xsl:stylesheet element in your current
location path.

So the xsl:value-of would look like:

  <xsl:value-of
    select="document('deioMSH.xml')/deioMSH:MSH/sendingApp" />

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


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.