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

RE: embed XML island in stylesheet?

Subject: RE: embed XML island in stylesheet?
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Wed, 31 Oct 2001 23:58:08 -0000
xml island
Sure why not?
<?xml version="1.0" ?>	
<anXML xmlns="cjb">
  <a>Sand and deckchairs,</a>
  <a>buckets and spades,</a>
</anXML>

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:n="cjb"
>
<n:anXML><!-- My island -->
  <n:a>tequila sunrise and</n:a>
  <n:a>rockpools.</n:a>
</n:anXML><!-- Palm trees and oysters -->
  <xsl:template match="/n:anXML">	
    <html>
     <body><xsl:apply-templates
select="n:a|document('')/xsl:stylesheet/n:anXML/n:a" /></body>
    </html>
  </xsl:template>
  <xsl:template match="n:a">
     -<xsl:value-of select="." />
  </xsl:template>
</xsl:stylesheet>

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Dan Diebolt
> Sent: 31 October 2001 23:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  embed XML island in stylesheet?
> 
> 
> Is it possible to embed an island of xml into an XSLT 
> stylesheet? If possible, I want to access it through 
> document() along with the main XML source. This would be as 
> an alternative to loading the xml island from a file using 
> document(). Thanks.
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals. 
> http://personals.yahoo.com
> 
>  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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.