New topic for XML forum

Hello,

I've to make a login-page with different buttons. Several things I've tried
(see comments in xlt code) but it wil not work. I must say that I am very
new in this area but can't find what I am looking for.

Wen a tag in <conOptions> looks like <optTodayPage/> (is empty) than I want
to fill the options with in this case: "UserItf..AspToday=1" (not relevant
for this xml). 

CAN ANYBODY HELP ME OUT PLEASE?

This is the (generated by my program made in VB) XML I want to process:

[ XML ]

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='LoginGeneratorExample.xsl'?>

<iDiMSLoginGenerator>

<loginPageName>loginPageName iDiMS login</loginPageName>
<CompName>compName Pukkers BV</CompName>

<loginConnection>

<conName DbsName="rse4813" SrvName="Shark" srvPort="8001">conName
rcG</conName>
<conAppRelease relMajor="522" relClient="rcG"
relServer="rcH"></conAppRelease>

<!-- Possible more options if not presented than
the option wasn't select -->
<conOptions>
<optTodayPage/>
<optSelSequence/>
</conOptions>

</loginConnection>

<loginConnection>

<conName DbsName="rse4813123" SrvName="Shark" srvPort="8004">conName sp
F</conName>
<conAppRelease relMajor="522" relClient="spf"
relServer="spf"></conAppRelease>
<conOptions>
<optTodayPage/>
<optSelSequence/>
</conOptions>

</loginConnection>

</iDiMSLoginGenerator>

And here the xlt:

[ XLT ]

<xsl:stylesheet xmlns:xsl = "<http://www.w3.org/1999/XSL/Transform>; version
= "1.0" >
<xsl:template match = "/" >

<!-- ''''' BEGIN LOGIN BUTTONS
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->

<xsl:for-each select="iDiMSLoginGenerator/loginConnection">

<IMG onclick="subDiMS Name, Version, Options" 
height="79" 
width="72" 
src="bm-loginpage/Development.gif" 
border="0">
</IMG>

<IMG height="1" src="bm-loginpage/shim.gif" width="5" border="0"></IMG>

<xsl:value-of select="conName"/>
<xsl:text> </xsl:text>
<xsl:value-of select="conAppRelease"/>
<xsl:text> </xsl:text>
<xsl:value-of select="conOptions"/>

<BR></BR>

</xsl:for-each>

<!--
<xsl:for-each select="conName">
<xsl:value-of select="text()"/> 
<xsl:text> </xsl:text>
<xsl:apply-templates select="@DbsName"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="@SrvName"/>
</xsl:for-each>
-->
<!-- <xsl:value-of select="conName"/> -->
<!-- <xsl:text > </xsl:text> = Spatie of ander teken -->

<!-- ''''' END LOGIN BUTTONS
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->

</xsl:template>
</xsl:stylesheet> 

Met vriendelijke groet,

Joko Ruwhof

DiMS! organizing print bv
----------------------------------------
Tel.: (+31) (544) 39 66 00
Mobile: (+31) (6) 2254 5017
Fax: (+31) (544) 39 66 11
Galileïstraat 26
P.O. Box 165
7130 AD  LICHTENVOORDE
Netherlands
Meet us at: http://www.dims.net

Received on Wednesday, 3 April 2002 11:51:07 UTC