|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: embed XML island in stylesheet?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








