Hello,

 

I have these structure, which I got from DB using esql:get-xml.

 

<LUR xmlns="" ...>

 <PU>

   <UserID>5<UserID>

   <Email>[EMAIL PROTECTED]</Email>

 </PU>

</LUR>

 

I made an XSL file for format this string, but I have problem with clickable Email.

 

When I used somethink like that, I got email into HREF attributes, but the address is added to the end of the current URL address:

 

<xsl:template match="Email">

    <b>

      <i18n:text>registration_email</i18n:text>

      <a>

        <xsl:attribute name="href">

          mailto:<xsl:value-of select="." />

        </xsl:attribute>

        <xsl:value-of select="." />

      </a>

      <br/>

    </b>

  </xsl:template>

 

I tried to change the template, but I don't know how I could call the value of Email from the structure otherwise. In this case the calling of mailto: is perfect, but the Email address is missing. I tried to find calling the value in the manual, but I only found calling of attributes of class or calling the children class.

 

  <xsl:template match="Email">

    <b>

      <i18n:text>registration_email</i18n:text>

      <a href=""mailto:{Email}">

        <xsl:value-of select="." />

      </a>

      <br/>

    </b>

  </xsl:template>

 

Can anyone help me?

 

Thanx a lot.

 

Jaroslav Kazmir

 

---------------------------------------------------------------------------------------------

  Jaroslav Kazmir
  Institute of Information Systems & Information Management
  JOANNEUM RESEARCH Forschungsgesellschaft mbH
  Steyrergasse 17, A-8010 Graz, AUSTRIA

 

  phone:  +43-316-876-1140                 fax: +43-316-876-1191
  web:    http://iis.joanneum.at
  e-mail: mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------------------------------

 

Reply via email to