[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document()
Hello Gabriel,
There are two ways to use the document() function. One is to use a string representation of the path to the directory in which the file is contained. To tell the processor that this is a string representation you need to use single quotes: document('/mickel/XML/xml_file.xml') Keep in mind that this will only work if 'mickel' is at the root of your directory. Another way to locate the correct file would be to use: document('../../XML/xml_file.xml') Your current approach tells the processor to locate the 'xml_file.xml' child element of /mickel/XML and use its value as a string representation of the file to use which, if it does not exist, will simply be ingored and leave you with an empty string for the document() function to work with. Obviously an empy string doesnt do a lot for you. Hope this helps! Regards, <M:D/> Gabriel K. wrote: I want to open an xml file that resides in a folder that is a above the xsl file in which document() is used (to access the xml file).
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|