Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Possible to have XSL test URL?

From: general.havok@-----.---
To: NULL
Date: 12/8/2006 11:32:00 AM

Thanks for the responses.
Yes I know about XSL:choose, and I could use that if I wished, but
that's not the main thrust of my question.  What I want is for it to
test the URL of the page it is on (what shows up in the address bar).
So, if it is on a certain page, I want it to do this.  If it is on
another page, I want it to do that.  See?
I know I know, you will say "write an XSL for each page" but that isn't
possible here, because I'm working in a CMS and I don't want to write
the same template over and over again for each piece of content.
So, can the XSL just look at the address of the page, and then do
something?  What is the code I would have to use to tell it to look at
that?



Erwan Amoureux wrote:
> Excuse me  but your question is not very clear...
> What URL would you test ?
> A URL writted in the XSLT ? In a parameter ? The URL's XSLT ?
> --
> My english is (very) rusted ,please , don''''t hesitate to correct me
> Thanks
>
> r=E9dacteur/mod=E9rateur xml sur developpez.com
>
>
> "Dimitre Novatchev" wrote:
>
> > If you know about xsl:if, then the next step is to learn about xsl:choo=
se
> >
> >
> > Cheers,
> > Dimitre Novatchev
> >
> >
> > <general.havok@g...> wrote in message
> > news:1165526268.911012.45060@f......
> > > Want to know if this is possible.
> > > I want to create an XSL file that will work with multiple webpages.
> > > I'd like to have a situation where the XSL would test the url and do a
> > > certain action depending on what page it is.
> > > For example, look at this made up code ( I don't know how to actually
> > > program what I want to do, if it's even possible, thats why I ask.)
> > > <xsl:if  (url=3Dpage1)
> > > action
> > > </xsl:if>
> > > <xsl:if  (url=3Dpage2)
> > > different action
> > > </xsl:if>
> > >
> > > The way my website is, a CMS, it's very inefficient for me to create a
> > > million templates and XSL files when I should be able to do it all wi=
th
> > > one XSL file that just has if statements to take care of all the
> > > differences.
> > >
> > > Thanks.
> > >=20
> >=20
> >=20
> >



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent