[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Newbie trying XT

Subject: [list4xt] Newbie trying XT

User: Website

From: Eystein Esbensen (eystein@viventus.no)
Date: 02/05/2000 - 11:04


Greetings all

I'm new to this list, but I've been trying out XSL for a couple of weeks.

I have looked through the 4XT site without finding any information about this:

I'm testing XT for Win32 on WinNT Server SP4 with the most basic XML and XSL,
but it allways returns the XSL sheet.

What am I doing wrong?

XML:
<?xml version='1.0'?>
<document name="Index">
<article id="A">
Contents of A
</article>
<article id="B">
Contents B
</article>
</document>

XSL:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'>
<xsl:template match="document">
<html>
<head>
<title>
<xsl:value-of select="@id"/>
</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="article">
<xsl:variable name="var">
<xsl:value-of select="@id"/>
</xsl:variable>
<b>
<xsl:value-of select="$var"/>
</b>
<br />
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>

This works with IBM's XSL editor. The variable thing is just to test XPath. XT
has sometimes returned an error when dealing with variables.

Thanks for all help

Eystein Esbensen
Viventus AS
eystein@viventus.no

--
Mailing list for the XT users community.     (http://newjerseymortgagebrokers.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org