This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: multiple XML tags -> single output
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] multiple XML tags -> single output
- From: "Pasupathi" <pasupati at hcl dot co dot in>
- Date: Thu, 28 Dec 2000 14:43:07 +0530
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi all,
I am new to this list (Beginer to xml also....) I have doubt in xm/xsl
Following is a code....
1) Slideshow.xml:
<?xml version='1.0' ?>
<?xml:stylesheet type="text/xsl" href="SlideShow.xsl" ?>
<slideshow>
<title>
Simple slide Show
</title>
</slideshow>
2) Slideshow.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="slideshow">
<h1>
<xsl:value-of select="title">
</xsl:value-of>
</h1>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
It is working good in IE. But not opening in Netscape browser. Is there any
different Namespace has to be given for Netscape browser. Please help me to
get the solution.
Reply,
Pasupathi.
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Kevin
McCarthy
Sent: Thursday, December 28, 2000 1:42 PM
To: xsl-list@lists.mulberrytech.com; zbrown@linuxcare.com;
dnovatchev@yahoo.com
Subject: Re: [xsl] multiple XML tags -> single output
C'mon, Dimitre, it's not a problem with the quotes :-)
Isn't what Zack needs to do is us an xsl:attribute statement like this?
<xsl:template match="a">
<a>
<xsl:attribute name="href"><xsl:value-of
select="@href"/></xsl:attribute>
</a>
</xsl:template>
-Kevin
----- Original Message -----
From: "Dimitre Novatchev" <dnovatchev@yahoo.com>
> > <xsl:template match="a">
> > <a href="<xsl:value-of select="@href"/>"><xsl:value-of
> select="."/></a>
> > </xsl:template>
> >
> > The above looks OK to me, but ...
>
> Unbalanced quotes...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list