Using the one argument form of the document() function, relative URIs use
the base URI of the stylesheet.  If you want an absolute path, use an
absolute path, or use the two argument form of the document() function to
provide the base URI for your relative URI.

You could also try:

   document('../temp/file.xml')

Or, if $WKDIR is a variable in your stylesheet, you could do something
like:

   document(concat($WKDIR, '/', 'temp/file.xml'))

Dave



                                                                                
                                                          
                      "Ross Ken"                                                
                                                          
                      <[EMAIL PROTECTED]         To:      
<[email protected]>                                                  
  
                      d.gov.au>                cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                              
                                               Subject: document() and Xalan-C  
                                                          
                      12/09/2002 02:58                                          
                                                          
                      PM                                                        
                                                          
                                                                                
                                                          



Hi Folks,

I was wondering whether anyone knew how to specify an absolute document
path in an XSLT for the document() function for the Xalan processor?

Relative paths further down the tree from the XSLT seem fine. eg if the
XSLT is in $WKDIR/project then you can access $WKDIR/project/temp ( by
using document('temp/file.xml') ), but I can't get it to access
$WKDIR/temp.  I'm sure I have to be doing something stupid, but I can't see
it.

Any help greatly appreciated,

Ken R.


Reply via email to