This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: embed XML island in stylesheet?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] embed XML island in stylesheet?
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- Date: Wed, 31 Oct 2001 23:58:08 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Dan Diebolt
> Sent: 31 October 2001 23:24
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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