Re: Xinclude with XSL?

2003-02-14 Thread Yury Mikhienko
On Thu, 13 Feb 2003 19:38:01 +
g4 [EMAIL PROTECTED] wrote:

 Hi there list,
 
 is it possible to use Xinclude within XSL? At present I have this:
 
 ?xml version=1.0?
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
 version='1.0'
  xmlns:xlink=http://www.w3.org/1999/xlink;
  xmlns:xi=http://www.w3.org/2001/XInclude;
 
 xsl:import href=menu.xsl/
 
 xsl:param name=section/
 xsl:param name=meta/
 xsl:param name=base-url/
 
 xsl:template match=/
   html
   head
   titleConservatories Online/title
   xi:include href={$meta}meta-{$section}.xml/
   /head
   body ...
 
 in the source output I get:
 
 xi:include href=metadata/meta-company.xml/
 

in sitemap.xmap you must insert the xinclude transformation before serialization
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO Mobicom-Kavkaz

-
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]




Xinclude with XSL?

2003-02-13 Thread g4
Hi there list,

is it possible to use Xinclude within XSL? At present I have this:

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
version='1.0'
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xi=http://www.w3.org/2001/XInclude;

xsl:import href=menu.xsl/

xsl:param name=section/
xsl:param name=meta/
xsl:param name=base-url/

xsl:template match=/
	html
		head
			titleConservatories Online/title
			xi:include href={$meta}meta-{$section}.xml/
		/head
	body ...

in the source output I get:

xi:include href=metadata/meta-company.xml/

Many thanks

Jason


-
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]