[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XInclude in Cocoon

Subject: XInclude in Cocoon
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 6 Feb 2001 16:05:40 +0000
cocoon xinclude
Hi Dylan,

>>No doubt eventually you'll be able to use XInclude (see
>>http://www.w3.org/TR/xinclude) or perhaps even XLink instead but I
>>don't think that any of the XSLT processors/XML parsers support this
>>at the moment.
>
> The Cocoon framework has XInclude.

Excellent :) Can you explain how to use it? I couldn't find anything
about it anywhere immediately obvious in the documentation. Plus I'm
running Cocoon 1.8 and I get nowhere with either:

----
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:x="http://www.w3.org/1999/XML/xinclude"
                extension-element-prefixes="x">

<xsl:template match="/">
   <html>
      <head>
         <title>Test</title>
         <style><x:include href="test.css" parse="text" /></style>
      </head>
      <body>
         <h1>Test</h1>
      </body>
   </html>
</xsl:template>

</xsl:stylesheet>
----

(the x:include is just ignored) or:

----
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:x="http://www.w3.org/1999/XML/xinclude">

<xsl:template match="/">
   <html>
      <head>
         <title>Test</title>
         <style><x:include href="test.css" parse="text" /></style>
      </head>
      <body>
         <h1>Test</h1>
      </body>
   </html>
</xsl:template>

</xsl:stylesheet>
----

(the x:include is outputted into the HTML).

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.