Re: Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread Sylvain Wallez



Hema Rajan a écrit :
> 
> Hi there!
> 
> We have to match an element which is in 4 or 5 th level from the current
> level.  Is there anyway to find out this element without giving the
> absolute/relative path in the xsl?
> 
> For example, our XML file is as follows:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> In our stylesheet we have the following template:
> 
> 
> 
> 
> 
> 
> 
> 
>  value="$({@item})"/>
> 
> 
> 
> 
> 
> 
> The above template works fine only if the  element is directly below
> the  tag.  It will not work if the  element is 2 or 3
> levels below the  tag.  We tried replacing the
> "" line with
> "".  Even this did not work.  Any
> suggestions?
> 
> regards,
> Hema.
> 

Just look at your XML file : it's not "input" but "cms:input" !
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

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




RE: Doubt in aplying stylesheet using Cocoon's xslt processor.

2001-07-19 Thread JEULIN Olivier

Use 

You may find http://www.dpawson.co.uk/xsl/sect2/sect21.html usefull for this
king of questions
Olivier

> -Message d'origine-
> De : Hema Rajan [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 19 juillet 2001 11:52
> À : [EMAIL PROTECTED]
> Objet : Doubt in aplying stylesheet using Cocoon's xslt processor.
> 
> 
> 
> Hi there!
> 
> We have to match an element which is in 4 or 5 th level from 
> the current
> level.  Is there anyway to find out this element without giving the
> absolute/relative path in the xsl?
> 
> For example, our XML file is as follows:
> 
> 
>   
>   
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>   
> 
> 
> In our stylesheet we have the following template:
> 
> 
>   
>   
>   
>   
>   
>   
>name="{@item}"
> value="$({@item})"/>
>   
>   
>   
>   
> 
> 
> The above template works fine only if the  element is 
> directly below
> the  tag.  It will not work if the  element is 2 or 3
> levels below the  tag.  We tried replacing the
> "" line with
> "".  Even this did not 
> work.  Any
> suggestions?  

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