Project

Profile

Help

LIkely simple newbie question for XInclude

Added by Daniel Williams about 12 years ago

I have created an xml document and an xslt document that is working the way it want. I now want to pull some of the xml document out and include it with an xinclude statement. However, it doesn't work once I make the change.

I think the question is 2 parts:

  1. What is the format of the external file supposed to be like
  2. What should the xi:include line be like.

Attached Files:

local.ConfigSettings.mvStores.xml: Working in the format as attached. Shows the section of the code that I tried to pull out and include via xinclude. It also has the xinclude statment that I used in a comment.

global.ConfigSettings.mvStores.xml: This is the data that was pulled out of the local file and the fomat that I used. Is this correct?

local.mvStores.xslt: Transform file that works fine when all the xml data is in one file. Gives and error when it is pulled out and included via xinclude.

test.bat: batch file used to test.

Using the latest saxon transform tool.


Replies (1)

RE: LIkely simple newbie question for XInclude - Added by Michael Kay about 12 years ago

I'm not sure if this question ever got a reply; we've had problems with the server and had to restore data from backups.

Saxon doesn't actually implement XInclude itself. Some of the parsers that can be used with Saxon include an XInclude implementation and Saxon has a switch (-xi) that allows it to be enabled.

For advice on using XInclude I would recommend using a public forum such as StackOverflow.

    (1-1/1)

    Please register to reply