Hi all, I am trying to pull data from various XML files, using cinclude, and I just seem to be missing something obvious. I went through the list archives, but my problem seems to be much simpler than what I found there.
I have been using the XSL document() function to get a value from the files, but realize that this is not the way to do it. Here's what I want to do: 1. get a value for the root path of my application from one XML file 2. assign it to a param or otherwise keep track of it for further use. Starting with the first page of my sitemap, I have: <map:match pattern="gs"> <map:generate src="gs.xml"/> <map:transform src="gs.xsl"/> <map:transform src="default-html.xsl"/> <map:serialize type="html"/> </map:match> gs.xml contains basic application data. The major business logic transformations take place in gs.xsl. This is what I currently am doing with document() in gs.xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:saxon="http://icl.com/saxon" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:strip-space elements="*"/> <!-- get the root path for other XML and gif files --> <xsl:param name="root" select="document('../../dat/gsproperties.xml')//Root"/> ... with many references to $root. default-html.xsl contains more transformations that are rather straighforward, but it uses $root in some places. and gsproperties.xml contains: <Properties> <Root>D:/tomcat/</Root> <Project kgID="1001"> <TargetDate>3/2/02</TargetDate> </Project> </Properties> I seem to be doing something wrong with the syntax when I try to use cinclude instead of document(). The errors typically say something like "file:/dat/gsproperties.xml was not found". I have tried various versions of examples from the archives, with no success. Am I going about this in a completely wrong manner? Regards, Leona Slepetis [EMAIL PROTECTED] --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>