xsl question

2003-06-26 Thread Tim Bachta
How would I do an if statement in xsl were I am testing for the value of an element? Example xsl:if test=deviation = 1 . where my incoming xml looks like this: de deviation0/deviation compleated-byN/A/compleated-by Thanks for

RE: xsl question

2003-06-26 Thread Yan, Charlene
You should ask [EMAIL PROTECTED] They are really good on xsl questions. xsl:if test=deviation ='1' Charlene -Original Message- From: Joydeep Bose [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:49 PM To: [EMAIL PROTECTED]; Tim Bachta Subject: Re: xsl question

xsl question

2002-09-30 Thread Kavitha Ramesh
Hi, I have an xml file as follows: user userid100/userid /user My XSL file is as follows: xsl:template match=user html /body a href=/cocoon/hello?userid=100Menu/a /body /html /xsl:template Now my xsl file has a static URL.But I need a dynamic URL.Each and everytime when my userid changes

RE: xsl question

2002-09-30 Thread Piroumian Konstantin
From: Kavitha Ramesh [mailto:[EMAIL PROTECTED]] Please do not ask pure XSLT questions here. Take a look at XSLT specific mail lists. Hi, I have an xml file as follows: user userid100/userid /user My XSL file is as follows: xsl:template match=user html /body a

RE: xsl question

2002-09-30 Thread Piroumian Konstantin
From: Piroumian Konstantin [mailto:[EMAIL PROTECTED]] From: Kavitha Ramesh [mailto:[EMAIL PROTECTED]] Please do not ask pure XSLT questions here. Take a look at XSLT specific mail lists. Hi, I have an xml file as follows: user userid100/userid /user My XSL file

RE: XSL question

2002-03-28 Thread Andreas Hartmann
*** REPLY SEPARATOR *** On 26.03.2002 at 15:47 Argyn Kuketayev wrote: As I've said before, you can use an action to get params from whereever you need then expose them to sitemap (using returning map in an action). Then you can simply set those params in your trasformer

Re: XSL-question: sort with parameter

2002-03-27 Thread Leonid Kleiner
: Wednesday, March 27, 2002 6:22 AM Subject: XSL-question: sort with parameter Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the parameter like xsl:sort select=$order-by order=ascending

XSL-question: sort with parameter

2002-03-26 Thread Axel Honfi
Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the parameter like xsl:sort select=$order-by order=ascending/. But with this nothing happens and all other forms I tried also failed. Does anyone know

Re: XSL-question: sort with parameter

2002-03-26 Thread KOZLOV Roman
Hi Axel, You can use something like following: xsl:sort select=child::node()[name()=$order]/ Best regards Roman Axel Honfi wrote: Hi! I passed a parameter to a stylesheet and I can get the value with xsl:value-of select=$order-by/. But I need to sort data by the value of the

Re: XSL-question: sort with parameter

2002-03-26 Thread Bartomeu Adrover
It's not a very good solution if you have a lot of values for sort, because you need to put one xsl:if tag for any possible value. ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:parameter name = sort/ xsl:template

XSL question

2002-03-25 Thread Martin Mauri
Hi, this is a kind of offtopic question I think but anyway... Is there a possibility to pass a parameter to a stylesheet? I'd like to do the following: Given a stylesheet, I'd like to include another but depending on a parameter passed by some external source, say an xml page. thanks in

RE: XSL question

2002-03-25 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: XSL question Yes. There is a tutorial on this at cocooncenter.org: http://www.cocooncenter.de/cc/documents/resources/request-params/index.html -Tom -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 8:56 AM

Re: XSL question

2002-03-25 Thread Martin Mauri
Title: RE: XSL question Hi Thomas, That's a good answer, unfortunately I forgot to point that I'm using Cocoon 1.8.2. Is there a solution for it? thanks! - Original Message - From: von Schwerdtner, Thomas (GXS, FPI) To: '[EMAIL PROTECTED]' Sent: Monday, March 25

RE: XSL question

2002-03-25 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: XSL question Ah, good point. I have no experience with pre 2.x Cocoon, so I don't know what would work. I'm sure others around here can answer that though. -T -Original Message-From: Martin Mauri [mailto:[EMAIL PROTECTED]]Sent: Monday, March 25, 2002 9:07 AMTo

Re: XSL question

2002-03-25 Thread Alexandre Victoor
Hi, you need to declare your parameter at the beginiing of the stylesheet : xsl:param name=yourparam/ xsl:template match=/ Then in the body of your stylesheet, $yourparam gives you the value of the parameter. Good luck Alex

Re: XSL question

2002-03-25 Thread Richard Korthuis
Title: RE: XSL question A while ago I made an XML (Cocoon 1.8)which requested a parameter passed on from a form on a webpage. Maybe you can try something similar for your XSL? xsp:page language="java"xmlns:sql="http://www.apache.org/1999/SQL"xmlns:xsp="http://www

Re: XSL question

2002-03-25 Thread Martin Mauri
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 11:32 AM Subject: Re: XSL question Hi, you need to declare your parameter at the beginiing of the stylesheet : xsl:param name=yourparam/ xsl:template match=/ Then in the body of your stylesheet, $yourparam

Re: XSL question

2002-03-25 Thread Martin Mauri
Title: RE: XSL question Dear Richard, I understand what you say, but here the problem is if I can get a parameter from an outside source, right? - Original Message - From: Richard Korthuis To: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 11:32 AM Subject

RE: XSL question

2002-03-25 Thread Piroumian, Konstantin
-Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 5:36 PM To: [EMAIL PROTECTED] Subject: Re: XSL question Dear Alexandre, Yes, I already know how to use params, but the point here is that I need to pass the param from an outside

Re: XSL question

2002-03-25 Thread Martin Mauri
can use an Action to create that param for you in sitemap then you can use it as usual. Regards, Konstantin Piroumian thanks! - Original Message - From: Alexandre Victoor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 11:32 AM Subject: Re: XSL

Re: XSL question

2002-03-25 Thread Richard Korthuis
Title: RE: XSL question Hello, What is this outside source? Are you calling the xml with a param (http:///index.xml?param=something) or are you passing this parameter in some other way? Richard - Original Message - From: Martin Mauri To: [EMAIL PROTECTED

Re: XSL question

2002-03-25 Thread Martin Mauri
Title: RE: XSL question Ok, forget it anyway. Here goes another. Does anyone remember how to define entities inside an xml file without the need of declaring the use of a DTD? thanks! - Original Message - From: Richard Korthuis To: [EMAIL PROTECTED] Sent: Monday

RE: XSL question

2002-03-25 Thread Stefan Seifert
Try this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE root [ !ENTITY nbsp #160; ] root ... /root Stefan -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 4:51 PM To: [EMAIL PROTECTED]; Richard Korthuis Subject: Re: XSL question Ok

Re: XSL question

2002-03-25 Thread Martin Mauri
it worked good, thanks! - Original Message - From: Stefan Seifert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 1:11 PM Subject: RE: XSL question Try this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE root [ !ENTITY nbsp #160; ] root ... /root Stefan

RE: Re: XSL question

2002-03-25 Thread Matthieu Benéteau
Kopie: Thema: Re: XSL question 25.03.02 17:21 Bitte antworten an cocoon-users Ok, forget it anyway. Here goes another. Does

RE: XSL question

2002-03-25 Thread Chitharanjan Das
Generator for reference) Hope this helps Regds, Chiths -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Re: XSL question Dear Konstantin, That's fine, but what I need to do is to choose dinamically

RE: Simple XSL question

2002-02-05 Thread Ivan Rubin Ayma
. Thanks, -Mensaje original- De: Simone Gianni [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 28 de enero de 2002 12:50 Para: [EMAIL PROTECTED] Asunto: Re: Simple XSL question At 12.37 28/01/2002 -0300, you wrote: Hello, How can I make a XSLT transformation of just a couple of elements

Re: Simple XSL question

2002-02-05 Thread Bryan Murphy
, -Mensaje original- De: Simone Gianni [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 28 de enero de 2002 12:50 Para: [EMAIL PROTECTED] Asunto: Re: Simple XSL question At 12.37 28/01/2002 -0300, you wrote: Hello, How can I make a XSLT transformation of just a couple of elements, leaving