Guest_imported
New member
- Jan 1, 1970
- 0
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 = " 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>
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 = " 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>