A href in XLS file

2002-10-21 Thread "Kazmír, Jaroslav"








Hello,

 

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

 



 

   5

   [EMAIL PROTECTED]

 



 

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:

 

:template match="Email">

    

  :text>registration_email

  

    :attribute name="href">

  mailto:

    :attribute>

    :value-of select="." />

  

  

    

  :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.

 

  :template match="Email">

    

  :text>registration_email

  mailto:{Email}">

    :value-of select="." />

  

  

    

  :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]
-

 








Re: A href in XLS file

2002-10-21 Thread Jörg Heinicke
Hello Jaroslav,

> Hello,
>  
> I have these structure, which I got from DB using esql:get-xml.
>  
> 
>  
>5
>[EMAIL PROTECTED]
>  
> 
>  
> 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:
>  
> 
> 
>   registration_email
>   
> 
>   mailto:
> 

here maybe the problem is the linebreak before "mailto:";. If you have a text
node containing non-whitespace characters, then this text node will be
copied to the output including all whitespace characters. You can change the line
to

mailto:

> 
>   
>   
> 
>   
>  
> 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.
>  
>   
> 
>   registration_email
>   mailto:{Email}";>

You match already on , so you ask for the value of a child element
, which you don't have. If you access the value of  via
, then you have to do it with the same XPath expression
in the Attribute Value Template:

mailto:{.}";>

> 
>   
>   
> 
>   
>  
> Can anyone help me?
>  
> Thanx a lot.
>  
> Jaroslav Kazmir

Regards,

Joerg

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>