Re: XSLT - how to refer to attribute in "calling" element

2003-11-12 Thread Joerg Heinicke
On 12.11.2003 03:59, Conal Tuohy wrote:

Hi Otmar

I'm not entirely sure of the format of the html form you want to produce, but I think the issue is that you need to pass a parameter (the article id) to the template which builds the list of countries for that article.




See http://www.w3.org/TR/xslt#element-with-param

PS this kind of question is better asked on the MulberryTech XSLT list - you'll usually get a quicker (and better) response there.
Couldn't be better, Con :-)

Joerg

-Original Message-
From: Otmar Vobejda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 November 2003 3:40 p.m.
To: [EMAIL PROTECTED]
Subject: XSLT - how to refer to attribute in "calling" element
Hi, I have a little problem and I don't know, how to make it. 
I'll try 
to show it on the small senseless example :)

This is source XML, that contains data about some pieces of goods and 
enumeration of countries, we want to attach to the articles 
in the HTML 
form:

   
   
   DVD Philips
   TV Panasonic
  

   
   
   1
   Czech Rep.
   
   
   2
   USA
   
   
   3
   Japan
  
   


Appropriate XSLT:


   


   


:  



   
   
   


   

This template should to show name of article and selectbox with 
countries of origin of article. Each selectbox should have in 
name ID of 
article to tell me (not to me exactly, but to the precessed 
script :), 
which country user selected to which article.

Problem is in the line  
('/data/goods/article/@id' is not absolutly correct, because 
it returns 
twice value 123), where I want put IDs of accordant articles.

I'd like to get this code:

DVD Philips: 
   Czech Rep.
   USA
   Japan

TV Panasonic: 
   Czech Rep.
   USA
   Japan


Thanx a lot for your help!


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


RE: XSLT - how to refer to attribute in "calling" element

2003-11-11 Thread Conal Tuohy
Hi Otmar

I'm not entirely sure of the format of the html form you want to produce, but I think 
the issue is that you need to pass a parameter (the article id) to the template which 
builds the list of countries for that article.





See http://www.w3.org/TR/xslt#element-with-param

PS this kind of question is better asked on the MulberryTech XSLT list - you'll 
usually get a quicker (and better) response there.

Regards

Con

> -Original Message-
> From: Otmar Vobejda [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 12 November 2003 3:40 p.m.
> To: [EMAIL PROTECTED]
> Subject: XSLT - how to refer to attribute in "calling" element
> 
> 
> Hi, I have a little problem and I don't know, how to make it. 
> I'll try 
> to show it on the small senseless example :)
> 
> This is source XML, that contains data about some pieces of goods and 
> enumeration of countries, we want to attach to the articles 
> in the HTML 
> form:
> 
>
> 
> DVD Philips
> TV Panasonic
>
> 
> 
> 
> 1
> Czech Rep.
> 
> 
> 2
> USA
> 
> 
> 3
> Japan
>
> 
> 
> 
> Appropriate XSLT:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  :  select="/data/origin-country-enumeration"/> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This template should to show name of article and selectbox with 
> countries of origin of article. Each selectbox should have in 
> name ID of 
> article to tell me (not to me exactly, but to the precessed 
> script :), 
> which country user selected to which article.
> 
> Problem is in the line  name="country_for_article_id_{/data/goods/article/@id}"> 
> ('/data/goods/article/@id' is not absolutly correct, because 
> it returns 
> twice value 123), where I want put IDs of accordant articles.
> 
> I'd like to get this code:
> 
> DVD Philips: 
> Czech Rep.
> USA
> Japan
>  
> TV Panasonic: 
> Czech Rep.
> USA
> Japan
>  
> 
> 
> Thanx a lot for your help!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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