Re: [XWeb-Users] XML files including files including files.
Brought to you by:
peterbecker
|
From: Peter B. <pe...@pe...> - 2002-05-01 14:01:08
|
Jesper Voetmann wrote: >Hi, > >Thanks to Felix Schwarz, I can now import other XML-files in my XML, and let >XWeb process the documnet. >(See last thread). This works fine, and it will do what I need to be done. > >However, blod as I am, I ran into difficulties when I started to import XML >files in more than one level. >What I want is to import XML files into XLM files, where the imported files >themself import other XML files. >Is this possible? XWeb states, what the XML is not 'well formed'. > As far as I know XML does not allow nesting system entities. You could try to use the import features of XSLT instead: it is possible to open additional files while processing XSLT code. Although this is not official part of the XSLT 1.0 spec most XSLT processors (including the version of Saxon in the distribution) support the document(..) function which gets a URL and returns the root element of the document given by this URL. HTH, Peter |