hypercontent-users Mailing List for HyperContent (Page 18)
Brought to you by:
alexvigdor
You can subscribe to this list here.
2004 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(1) |
Jul
(7) |
Aug
(4) |
Sep
(31) |
Oct
(11) |
Nov
(30) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(23) |
Feb
(11) |
Mar
(22) |
Apr
(13) |
May
(31) |
Jun
(27) |
Jul
(32) |
Aug
(4) |
Sep
(25) |
Oct
(21) |
Nov
(31) |
Dec
(28) |
2006 |
Jan
(14) |
Feb
(12) |
Mar
(17) |
Apr
(21) |
May
(6) |
Jun
(4) |
Jul
(26) |
Aug
(24) |
Sep
(19) |
Oct
(24) |
Nov
(34) |
Dec
(17) |
2007 |
Jan
(10) |
Feb
(43) |
Mar
(60) |
Apr
(10) |
May
(20) |
Jun
(2) |
Jul
(17) |
Aug
(38) |
Sep
(45) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(10) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(4) |
Sep
(1) |
Oct
(5) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carl B. <C.P...@hu...> - 2006-07-11 14:59:46
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Carl P B. <C.P...@hu...> - 2006-07-11 14:21:06
|
Hi Alex, We aren't using CAS here in Hull so I'll look at turning tidy on and see if that helps. Cheers Carl ************************************* Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************* -----Original Message----- From: hyp...@li... [mailto:hyp...@li...] On Behalf Of Alex Vigdor Sent: 11 July 2006 15:15 To: Hypercontent-users List Subject: Re: [Hypercontent-users] presenting a list of sites to users Hi Carl, There's a special portlet mode available for publishing a =20 personalized list of sites to the portal, although for it to work =20 best you should have single sign-on (e.g. CAS). It's called =20 "dashboard-portlet" http://localhost:8080/index.xml?mode=3Ddashboard-portlet And if you're using CAS, you can enable transparent single sign on by =20 publishing with the CasConnectionContext and adding a login command =20 to the HC2 URL you configure in the portal: http://localhost:8080/index.xml?mode=3Ddashboard-portlet&command=3DLogin This returns valid XHTML so you don't have to enable Tidy in the =20 portal. If you're trying to pull in non-XML screens in the portal, =20 try turning Tidy on to see if that fixes the parsing problems. The "meta" tag you're noticing is added by Xalan automatically when =20 generating HTML; I think you'd have to tell it to output "XML" to =20 avoid that tag. Cheers, Alex On Jul 11, 2006, at 7:41 AM, Carl Barrow wrote: > Hi Alex, > > I'm having a short break from the LDAP auth and trying to get the file > list into uPortal. uPortal doesn't like the page because of a =20 > missing > closing meta tag: > > <META http-equiv=3D"Content-Type" content=3D"text/html; = charset=3DUTF-8"> > > I have looked though what I think is the xsl that transforms it > (login.xsl, html_skin.xsl, base.xsl) But I can't see the tag > anywhere. Could you point me in the right direction? > > Cheers > Carl > > Alex Vigdor wrote: >> Hi Carl, >> There's a special modal output that presents the user-specific >> list of projects: >> >> http://localhost:8080/index.xml?mode=3Ddashboard-portlet >> >> You can publish this as a CWebProxy channel in uPortal; if you are >> using CAS you can enable single sign-on by setting the appropriate >> LocalConnectionContext and adding the Login command to the portlet =20 >> URL >> >> = http://localhost:8080/index.xml?mode=3Ddashboard-portlet&command=3DLogin >> >> This will appear very similar to the list users had in 1.4. >> >> Cheers, >> Alex >> >> On Mar 27, 2006, at 4:56 AM, Carl Barrow wrote: >> >>> Hi Alex >>> >>> In our live version on HyperContent (1.4) we present a list sites >>> that users are responsible for within our uPortal layout for staff. >>> Since HyperContent 2.0 doesn't run within uPortal how do you present >>> a list of sites to your users at Columbia and allow them to only see >>> the sites they are responsible for? >>> >>> Cheers >>> Carl >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by xPML, a groundbreaking scripting >>> language >>> that extends applications into web and mobile media. Attend the live >>> webcast >>> and join the prime developer group breaking into this new coding >>> territory! >>> http://sel.as-us.falkag.net/sel?=20 >>> cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D121642 >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?=20 >> cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > --=20 > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go =20 > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Hypercontent-users mailing list Hyp...@li... https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Alex V. <av...@co...> - 2006-07-11 14:15:06
|
Hi Carl, There's a special portlet mode available for publishing a personalized list of sites to the portal, although for it to work best you should have single sign-on (e.g. CAS). It's called "dashboard-portlet" http://localhost:8080/index.xml?mode=dashboard-portlet And if you're using CAS, you can enable transparent single sign on by publishing with the CasConnectionContext and adding a login command to the HC2 URL you configure in the portal: http://localhost:8080/index.xml?mode=dashboard-portlet&command=Login This returns valid XHTML so you don't have to enable Tidy in the portal. If you're trying to pull in non-XML screens in the portal, try turning Tidy on to see if that fixes the parsing problems. The "meta" tag you're noticing is added by Xalan automatically when generating HTML; I think you'd have to tell it to output "XML" to avoid that tag. Cheers, Alex On Jul 11, 2006, at 7:41 AM, Carl Barrow wrote: > Hi Alex, > > I'm having a short break from the LDAP auth and trying to get the file > list into uPortal. uPortal doesn't like the page because of a > missing > closing meta tag: > > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> > > I have looked though what I think is the xsl that transforms it > (login.xsl, html_skin.xsl, base.xsl) But I can't see the tag > anywhere. Could you point me in the right direction? > > Cheers > Carl > > Alex Vigdor wrote: >> Hi Carl, >> There's a special modal output that presents the user-specific >> list of projects: >> >> http://localhost:8080/index.xml?mode=dashboard-portlet >> >> You can publish this as a CWebProxy channel in uPortal; if you are >> using CAS you can enable single sign-on by setting the appropriate >> LocalConnectionContext and adding the Login command to the portlet >> URL >> >> http://localhost:8080/index.xml?mode=dashboard-portlet&command=Login >> >> This will appear very similar to the list users had in 1.4. >> >> Cheers, >> Alex >> >> On Mar 27, 2006, at 4:56 AM, Carl Barrow wrote: >> >>> Hi Alex >>> >>> In our live version on HyperContent (1.4) we present a list sites >>> that users are responsible for within our uPortal layout for staff. >>> Since HyperContent 2.0 doesn't run within uPortal how do you present >>> a list of sites to your users at Columbia and allow them to only see >>> the sites they are responsible for? >>> >>> Cheers >>> Carl >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by xPML, a groundbreaking scripting >>> language >>> that extends applications into web and mobile media. Attend the live >>> webcast >>> and join the prime developer group breaking into this new coding >>> territory! >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=110944&bid=241720&dat=121642 >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2006-07-11 11:41:42
|
Hi Alex, I'm having a short break from the LDAP auth and trying to get the file list into uPortal. uPortal doesn't like the page because of a missing closing meta tag: <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> I have looked though what I think is the xsl that transforms it (login.xsl, html_skin.xsl, base.xsl) But I can't see the tag anywhere. Could you point me in the right direction? Cheers Carl Alex Vigdor wrote: > Hi Carl, > There's a special modal output that presents the user-specific > list of projects: > > http://localhost:8080/index.xml?mode=dashboard-portlet > > You can publish this as a CWebProxy channel in uPortal; if you are > using CAS you can enable single sign-on by setting the appropriate > LocalConnectionContext and adding the Login command to the portlet URL > > http://localhost:8080/index.xml?mode=dashboard-portlet&command=Login > > This will appear very similar to the list users had in 1.4. > > Cheers, > Alex > > On Mar 27, 2006, at 4:56 AM, Carl Barrow wrote: > >> Hi Alex >> >> In our live version on HyperContent (1.4) we present a list sites >> that users are responsible for within our uPortal layout for staff. >> Since HyperContent 2.0 doesn't run within uPortal how do you present >> a list of sites to your users at Columbia and allow them to only see >> the sites they are responsible for? >> >> Cheers >> Carl >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-07-05 15:42:17
|
Hi Carl, Did you manage to get any debug information from the LDAP LoginModule? If you want to send me your jaas.properties I can try to have a look maybe next week . . . this week is my last in the office at Columbia and predictably I have a lot to finish up. Cheers, Alex On Jul 4, 2006, at 7:34 AM, Carl Barrow wrote: > Hi All, > > > > Has anyone successfully used LDAP Authentication for H/C 2.0? > > > > Cheers > > Carl > > > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > ************************************* > > > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > *******************Using Tomcat but need to do more? Need to > support web services, security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2006-07-04 11:34:43
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-06-27 19:28:14
|
Hi Aaron, Which ant target were you running? That looked like a successful compile target run (whose classes have already been compiled), are you not then able to run the startup target or otherwise deploy it? Alex On Jun 27, 2006, at 3:16 PM, Aaron Fuleki wrote: > Hey guys, > We had no problems building and deploying HC2 on RedHat, but I > can't get it to build under Mac OS X 10.4.6 on my PowerBook. I get > lots of 'skipping blah blah' and 'Could not load a dependent > class...' messages, and no hypercontent-handler.jar comes out in > the end. I admit I'm somewhat Java-ignorant; is Ant pointing at > the wrong jvm? The path it spits out at compile time is the same > as the j2se install, but I have all the developer tools installed, > I just don't know how to find the JDK. I know TFM says that SDK/ > JDK are required to build. Should ant be looking somewhere else? > > Sorry if this is a dumb question. Maybe that's what I get for try > to work on holidays! > > -Aaron > > P.S. Here's my Ant output, if anyone is interested. > <compileErrors.txt> > > > --------------------------------- > Aaron Fuleki > Web Services Manager > Denison University > 740.587.5752 > --------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Aaron F. <fu...@de...> - 2006-06-27 19:16:50
|
Hey guys, We had no problems building and deploying HC2 on RedHat, but I can't get it to build under Mac OS X 10.4.6 on my PowerBook. I get lots of 'skipping blah blah' and 'Could not load a dependent class...' messages, and no hypercontent-handler.jar comes out in the end. I admit I'm somewhat Java-ignorant; is Ant pointing at the wrong jvm? The path it spits out at compile time is the same as the j2se install, but I have all the developer tools installed, I just don't know how to find the JDK. I know TFM says that SDK/JDK are required to build. Should ant be looking somewhere else? Sorry if this is a dumb question. Maybe that's what I get for try to work on holidays! -Aaron P.S. Here's my Ant output, if anyone is interested. |
From: Alex V. <av...@co...> - 2006-06-26 15:56:41
|
Hi Carl, Answers embedded below: On Jun 26, 2006, at 11:44 AM, Carl Barrow wrote: > Hi Alex, > > I am having a push to get HyperContent 2.0 live here in Hull before > you > leave Columbia, the main thing I need to sort out is LDAP > Authentication. > Just a couple of questions, > > 1 - Once user had logged on their password is stored in an XML file > so that > it can be used when LDAP isn't available. Will HyperContent check > the LDAP > server each time before using the local version of the password? The order in which the LoginModules are evaluated depends on the order they are configured in jaas.properties. If you put the org.hypercontent.security.UserFileLoginModule first and indicate it is sufficient, it will be evaluated first, and if it is successful the LDAP module won't be called. > > 2 - I'm having some problems at the moment, does HyperContent log > anything > that might help me find a solution? Like I said I appear to be > hitting the > server but then the connection is closed. I would definitely read through the hypercontent.log, and pay special attention to the lines shortly after "HyperContent completed startup" to look out for possible configuration errors that may occur even before you hit the server in the browser. If you're stumped, feel free to pass your log file along and I'll have a look. Cheers, Alex |
From: Carl B. <C.P...@hu...> - 2006-06-26 15:44:13
|
Hi Alex, I am having a push to get HyperContent 2.0 live here in Hull before you leave Columbia, the main thing I need to sort out is LDAP Authentication. Just a couple of questions, 1 - Once user had logged on their password is stored in an XML file so that it can be used when LDAP isn't available. Will HyperContent check the LDAP server each time before using the local version of the password? 2 - I'm having some problems at the moment, does HyperContent log anything that might help me find a solution? Like I said I appear to be hitting the server but then the connection is closed. Cheers Carl ************************************* Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************* ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Carl B. <C.P...@hu...> - 2006-05-05 15:05:28
|
Thanks Alex, I'm still playing with this. It is connecting to our Ldap server but then the connection is being closed. I'll keep at it and as you said update the Wiki as I progress. Cheers Carl Alex Vigdor wrote: > Hi Carl, > I think the code required JDK 1.5, but I made a few tweaks and > compiled it under 1.4, and put the jar file on the wiki. You can > disable SSL with a configuration parameter in jaas.properties, e.g. > > HyperContent > { > com.sun.security.auth.module.LdapLoginModule sufficient > > userProvider="ldap://ldap.columbia.edu:389/o=Columbia%20University,c=US" > useSSL="false"; > org.hypercontent.security.UserFileLoginModule sufficient; > > }; > > All the configuration options are documented in the source. Since > I've never tested this code, all I can recommend is reading the > documentation and do some trial and error to see what works. If you > get it working, please update the Wiki page with some notes about your > configuration. > > Good luck! > > Alex > > On May 5, 2006, at 8:01 AM, Carl Barrow wrote: > >> Hi Alex. >> >> I am having problems recompiling the Ldap Login Module. I got the >> java file from the Wikki because I needed to turn SSL off but I just >> get a lot of errors when I try to recompile it. >> >> Do you have a compiled version with SSL set to false by any change? >> >> Cheers >> Carl >> >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-05-05 13:46:59
|
Hi Carl, I think the code required JDK 1.5, but I made a few tweaks and compiled it under 1.4, and put the jar file on the wiki. You can disable SSL with a configuration parameter in jaas.properties, e.g. HyperContent { com.sun.security.auth.module.LdapLoginModule sufficient userProvider="ldap://ldap.columbia.edu:389/ o=Columbia%20University,c=US" useSSL="false"; org.hypercontent.security.UserFileLoginModule sufficient; }; All the configuration options are documented in the source. Since I've never tested this code, all I can recommend is reading the documentation and do some trial and error to see what works. If you get it working, please update the Wiki page with some notes about your configuration. Good luck! Alex On May 5, 2006, at 8:01 AM, Carl Barrow wrote: > Hi Alex. > > I am having problems recompiling the Ldap Login Module. I got the > java file from the Wikki because I needed to turn SSL off but I > just get a lot of errors when I try to recompile it. > > Do you have a compiled version with SSL set to false by any change? > > Cheers > Carl > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2006-05-05 12:02:07
|
Hi Alex. I am having problems recompiling the Ldap Login Module. I got the java file from the Wikki because I needed to turn SSL off but I just get a lot of errors when I try to recompile it. Do you have a compiled version with SSL set to false by any change? Cheers Carl -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-05-03 13:41:28
|
Hi Carl, The main pieces would be the ftp library (webapp/WEB-INF/lib/ edtftpj-1.5.1.jar) and from the filesystem package BaseFilesystem, RemoteFileSystemImpl, FTPUnixFileSystemImpl, and possibly FTPFileDataLoader and SFTPFileSystemImpl as well. Cheers, Alex On May 3, 2006, at 9:25 AM, Carl Barrow wrote: > Hi Alex, > > I can FTP to that server using HC2 without any problems. How would > I go about backporting the code from HC2? > > Cheers, > Carl > > Alex Vigdor wrote: >> Hi Carl, >> There have been some updates to both the backing FTP library >> and the code that glues it in for HC2, so it may be worth testing >> a publish to that server from HC2 to see if it works; the updated >> code should be compatible with a broader range of FTP servers. If >> that works and you need to get it working in 1.4, the next step >> would be to backport the changes. If that doesn't work, you may >> need to send me a login off list so I can run it through a degugger. >> >> Cheers, >> Alex >> >> On May 2, 2006, at 6:40 AM, Carl Barrow wrote: >> >>> Hi Alex, >>> >>> Have the seen the problem detailed below before? >>> >>> Cheers >>> Carl >>> >>> -------- Original Message -------- >>> Subject: RE: publishing from HyperContent to scarborough >>> Date: Tue, 2 May 2006 11:29:52 +0100 >>> From: Daniel Wiggle <d.w...@hu...> >>> To: Carl Barrow <C.P...@hu...> >>> >>> >>> >>> Hi Carl, >>> >>> Thanks for the address. However, when I passed it along to Phil >>> who runs >>> the server here, he observed that the 150.237.16 range was >>> already set >>> to be allowed to connect, so he hasn't actually changed anything >>> in the >>> end. >>> >>> So, I've had a go at getting HyperContent to publish to our >>> server and >>> have hit a bit of a wall unfortunately. I re-configured the 'build' >>> settings for the site to point to the server here and when I try to >>> build a page from within the project I get the error message as >>> shown on >>> the attached screenshot. Looking at the FTP logs for the server >>> here, I >>> can see the HyperContent server connecting successfully but then not >>> doing anything else at all (although the log doesn't seem to include >>> actions such as listing files in a directory). >>> >>> The error message about index.xml not being found is puzzling - >>> index.xml should never exist on the server hosting the published >>> site >>> should it? I've not changed anything else so index.xml in the CMS >>> repository (where it should be looking for it) should still be where >>> it's always been. As I understood it, I thought the 'build' >>> settings in >>> the project definition were simply FTP settings for where >>> HyperContent >>> should dump the output it generates. If this is the case, I'm >>> afraid I'm >>> not sure what's going on! >>> >>> Anyway, sorry to have to come back to you so soon with it, but any >>> chance you've any ideas about what's happening? >>> >>> Cheers, >>> Dan >>> >>> -----Original Message----- >>> From: Carl Barrow [mailto:C.P...@hu...] Sent: 27 April >>> 2006 10:40 >>> To: Daniel Wiggle >>> Subject: Re: publishing from HyperContent to scarborough >>> >>> Hi Dan, >>> >>> That would be why I could never get the system to ftp up there. >>> The IP address for the server running HyperContent is 150.237.16. >>> 34 >>> >>> Cheers >>> Carl >>> >>> Daniel Wiggle wrote: >>>> >>>> Hi Carl, >>>> >>>> I'm going to have a go at configuring the Scarborough campus >>>> site to publish to one of our servers here but am told the >>>> server here refuses >>> >>>> access to non-recognised IP addresses. Do you know what the IP >>>> address >>> >>>> is of the server that would be copying files to a Scarborough- >>>> based server when I publish from HyperContent? If I was to guess >>>> I'd go for the Portal address of 150.237.16.10 but I'm not sure >>>> if that's right or not. >>>> >>>> I'll just have a play around and see if I can make it work and >>>> if so then I'll be back in touch to arrange removing the Hull- >>>> hosted pages and putting in place a redirection page instead. >>>> >>>> Cheers, >>>> Dan >>>> >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> >>> >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> <cmsBuildError.JPG> >>> ******************************************************************** >>> ********************* >>> To view the terms under which this email is distributed, please >>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>> ******************************************************************** >>> ********************* >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |
From: Carl B. <C.P...@hu...> - 2006-05-03 13:26:06
|
Hi Alex, I can FTP to that server using HC2 without any problems. How would I go about backporting the code from HC2? Cheers, Carl Alex Vigdor wrote: > Hi Carl, > There have been some updates to both the backing FTP library and > the code that glues it in for HC2, so it may be worth testing a > publish to that server from HC2 to see if it works; the updated code > should be compatible with a broader range of FTP servers. If that > works and you need to get it working in 1.4, the next step would be to > backport the changes. If that doesn't work, you may need to send me a > login off list so I can run it through a degugger. > > Cheers, > Alex > > On May 2, 2006, at 6:40 AM, Carl Barrow wrote: > >> Hi Alex, >> >> Have the seen the problem detailed below before? >> >> Cheers >> Carl >> >> -------- Original Message -------- >> Subject: RE: publishing from HyperContent to scarborough >> Date: Tue, 2 May 2006 11:29:52 +0100 >> From: Daniel Wiggle <d.w...@hu...> >> To: Carl Barrow <C.P...@hu...> >> >> >> >> Hi Carl, >> >> Thanks for the address. However, when I passed it along to Phil who runs >> the server here, he observed that the 150.237.16 range was already set >> to be allowed to connect, so he hasn't actually changed anything in the >> end. >> >> So, I've had a go at getting HyperContent to publish to our server and >> have hit a bit of a wall unfortunately. I re-configured the 'build' >> settings for the site to point to the server here and when I try to >> build a page from within the project I get the error message as shown on >> the attached screenshot. Looking at the FTP logs for the server here, I >> can see the HyperContent server connecting successfully but then not >> doing anything else at all (although the log doesn't seem to include >> actions such as listing files in a directory). >> >> The error message about index.xml not being found is puzzling - >> index.xml should never exist on the server hosting the published site >> should it? I've not changed anything else so index.xml in the CMS >> repository (where it should be looking for it) should still be where >> it's always been. As I understood it, I thought the 'build' settings in >> the project definition were simply FTP settings for where HyperContent >> should dump the output it generates. If this is the case, I'm afraid I'm >> not sure what's going on! >> >> Anyway, sorry to have to come back to you so soon with it, but any >> chance you've any ideas about what's happening? >> >> Cheers, >> Dan >> >> -----Original Message----- >> From: Carl Barrow [mailto:C.P...@hu...] Sent: 27 April 2006 >> 10:40 >> To: Daniel Wiggle >> Subject: Re: publishing from HyperContent to scarborough >> >> Hi Dan, >> >> That would be why I could never get the system to ftp up there. The >> IP address for the server running HyperContent is 150.237.16. >> 34 >> >> Cheers >> Carl >> >> Daniel Wiggle wrote: >>> >>> Hi Carl, >>> >>> I'm going to have a go at configuring the Scarborough campus site to >>> publish to one of our servers here but am told the server here refuses >> >>> access to non-recognised IP addresses. Do you know what the IP address >> >>> is of the server that would be copying files to a Scarborough-based >>> server when I publish from HyperContent? If I was to guess I'd go >>> for the Portal address of 150.237.16.10 but I'm not sure if that's >>> right or not. >>> >>> I'll just have a play around and see if I can make it work and if so >>> then I'll be back in touch to arrange removing the Hull-hosted pages >>> and putting in place a redirection page instead. >>> >>> Cheers, >>> Dan >>> >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> >> >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> <cmsBuildError.JPG> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-05-02 13:50:22
|
Hi Carl, There have been some updates to both the backing FTP library and the code that glues it in for HC2, so it may be worth testing a publish to that server from HC2 to see if it works; the updated code should be compatible with a broader range of FTP servers. If that works and you need to get it working in 1.4, the next step would be to backport the changes. If that doesn't work, you may need to send me a login off list so I can run it through a degugger. Cheers, Alex On May 2, 2006, at 6:40 AM, Carl Barrow wrote: > Hi Alex, > > Have the seen the problem detailed below before? > > Cheers > Carl > > -------- Original Message -------- > Subject: RE: publishing from HyperContent to scarborough > Date: Tue, 2 May 2006 11:29:52 +0100 > From: Daniel Wiggle <d.w...@hu...> > To: Carl Barrow <C.P...@hu...> > > > > Hi Carl, > > Thanks for the address. However, when I passed it along to Phil who > runs > the server here, he observed that the 150.237.16 range was already set > to be allowed to connect, so he hasn't actually changed anything in > the > end. > > So, I've had a go at getting HyperContent to publish to our server and > have hit a bit of a wall unfortunately. I re-configured the 'build' > settings for the site to point to the server here and when I try to > build a page from within the project I get the error message as > shown on > the attached screenshot. Looking at the FTP logs for the server > here, I > can see the HyperContent server connecting successfully but then not > doing anything else at all (although the log doesn't seem to include > actions such as listing files in a directory). > > The error message about index.xml not being found is puzzling - > index.xml should never exist on the server hosting the published site > should it? I've not changed anything else so index.xml in the CMS > repository (where it should be looking for it) should still be where > it's always been. As I understood it, I thought the 'build' > settings in > the project definition were simply FTP settings for where HyperContent > should dump the output it generates. If this is the case, I'm > afraid I'm > not sure what's going on! > > Anyway, sorry to have to come back to you so soon with it, but any > chance you've any ideas about what's happening? > > Cheers, > Dan > > -----Original Message----- > From: Carl Barrow [mailto:C.P...@hu...] Sent: 27 April > 2006 10:40 > To: Daniel Wiggle > Subject: Re: publishing from HyperContent to scarborough > > Hi Dan, > > That would be why I could never get the system to ftp up there. The > IP address for the server running HyperContent is 150.237.16. > 34 > > Cheers > Carl > > Daniel Wiggle wrote: >> >> Hi Carl, >> >> I'm going to have a go at configuring the Scarborough campus site >> to publish to one of our servers here but am told the server here >> refuses > >> access to non-recognised IP addresses. Do you know what the IP >> address > >> is of the server that would be copying files to a Scarborough- >> based server when I publish from HyperContent? If I was to guess >> I'd go for the Portal address of 150.237.16.10 but I'm not sure if >> that's right or not. >> >> I'll just have a play around and see if I can make it work and if >> so then I'll be back in touch to arrange removing the Hull-hosted >> pages and putting in place a redirection page instead. >> >> Cheers, >> Dan >> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > <cmsBuildError.JPG> > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |
From: Carl B. <C.P...@hu...> - 2006-04-28 14:56:16
|
Thanks Alex, Thats working great now. I'm actually building the site in version 2.0, just because I find it much easier to develop in. I'll dump it all itnto1.4 before going live. The wrong way round to do things I know, but I can't roll out 2.0 to everyone at the moment. I'm not too bothered about the same day sorting in version 1.4. It will be okay. Cheers Carl Alex Vigdor wrote: > HI Carl, > The creation date is available via dublin core metadata, i.e. > > /cms:wrapper/cms:include/rdf:RDF/cfs:File/dc:date > > In the current release this is only a date stamp, so the sorting isn't > reliable between items created on the same day. The CVS code is > already updated so this is a date-time stamp. It's in ISO 8601 format > ("yyyy-MM-dd HH:mm:ssZ") which means it can be sorted > lexicographically without parsing the date. > > Cheers, > Alex > > On Apr 28, 2006, at 6:41 AM, Carl Barrow wrote: > >> Hi Alex, >> >> I see... I think I'll go for the RSS rendered news with it's own >> navigation file when I properly switch to version 2.0. I intend this >> to be after the summer. News items on our main public site could >> well get into the hundreds. >> >> For now, how would I actually get to the filedate. I can sort by >> various parts of the XML file <xsl:sort select="@title"> but I need >> to sort by the date the file was created/edited. >> >> Cheers >> Carl >> >> Alex Vigdor wrote: >>> Hi Carl, >>> You can use an XSL sort at the point you apply-templates for >>> "newsbodytext" to sort based on date. Part of the advantage of >>> using a navigation file for this is overall better performance, >>> especially if you get to the point where you're trying to pick the 5 >>> most recent out of hundreds. >>> >>> Cheers, >>> Alex >>> >>> On Apr 27, 2006, at 9:20 AM, Carl Barrow wrote: >>> >>>> This might actually be flawed. It seems the elements are numbers >>>> in alphabetical order not as they are added so the numbers actually >>>> change. So what I thought would be the latest 5 are simply the >>>> first 5 in alphabetical order. Do you have any ideas how to solve >>>> that? >>>> >>>> Cheers >>>> Carl >>>> >>>> Carl Barrow wrote: >>>>> Hi Alex, >>>>> >>>>> I didn't really want to create a specific navigation file for news >>>>> and events so I've have set the news and events to order by date >>>>> and done it as follows: >>>>> >>>>> <xsl:template match="newsbodytext"> >>>>> <xsl:variable name="emailadd" select="@email"/> >>>>> <xsl:variable name="pos" select="position()"/> >>>>> <xsl:variable name="include" select="ancestor::cms:include"/> >>>>> <xsl:if test="$pos < '5'"> >>>>> <a >>>>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>>>> >>>>> <xsl:value-of select="@title"/> >>>>> </a> >>>>> <br/> >>>>> <xsl:value-of select="summary"/> >>>>> </xsl:if> >>>>> </xsl:template> >>>>> >>>>> Is that an 'okay' way of doing it? >>>>> >>>>> Is the velocity template the one used for the ja-sig site? I have >>>>> downloaded that and did use the RSS generation on a test site >>>>> here. It works really well. However, at the moment since I am >>>>> only live with 1.4 I haven't been able to use it for anything live. >>>>> >>>>> Cheers >>>>> Carl >>>>> >>>>> >>>>> >>>>> Alex Vigdor wrote: >>>>>> Hi Carl, >>>>>> To generate a "top 5" list, I recommend creating a specific >>>>>> navigation file to represent the list. You could set the root >>>>>> nav-template to "/news/index.xml" and a child template to >>>>>> "/news/*.xml", or whatever the appropriate pattern is; then set >>>>>> the root template to sort children by date descending, and set >>>>>> the maxChildren attribute to 5. I also have a velocity template >>>>>> that will render such a navigation file to RSS if you're interested. >>>>>> >>>>>> Cheers, >>>>>> Alex >>>>>> >>>>>> On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: >>>>>> >>>>>>> Hi Alex, >>>>>>> >>>>>>> This has worked very well, I am using it for news and events >>>>>>> too. I am generating a news index but also want to add the >>>>>>> latest 5 news items on the Homepage. I was thinking that I >>>>>>> could use something like: >>>>>>> >>>>>>> <xsl:variable name="include" >>>>>>> select="ancestor::cms:include[position() < 6]"/> >>>>>>> >>>>>>> But I don't seem to be able to get it to work. Am I going >>>>>>> about it the right way? >>>>>>> >>>>>>> Cheers >>>>>>> Carl >>>>>>> >>>>>>> Alex Vigdor wrote: >>>>>>>> Hi Carl, >>>>>>>> Something like >>>>>>>> <xsl:variable name="include" select="ancestor::cms:include"/> >>>>>>>> <a >>>>>>>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>>>>>>> >>>>>>>> <xsl:value-of select="@firstname"/> >>>>>>>> <xsl:value-of select="@lastname"/> >>>>>>>> </a> >>>>>>>> >>>>>>>> By the way, have you considered using VCard for this >>>>>>>> information? Then you could set it up to populate from LDAP, >>>>>>>> and get addressbook integration as well. We'll often use VCard >>>>>>>> for basic contact info, then use either additional attributes >>>>>>>> in the XML for more specific info like office hours, degrees, >>>>>>>> etc., or put it in the VCard note so it will show up in your >>>>>>>> addressbook as well. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Alex >>>>>>>> >>>>>>>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>>>>>>> >>>>>>>>> Thanks Alex, >>>>>>>>> >>>>>>>>> Thats working for me now. I've turned the email address into >>>>>>>>> a link easy enough, but I want to turn the persons name into >>>>>>>>> a link to their page. I have only just started looking at it >>>>>>>>> now, do you have any pointers? >>>>>>>>> >>>>>>>>> Cheers >>>>>>>>> Carl >>>>>>>>> >>>>>>>>> Alex Vigdor wrote: >>>>>>>>>> Hi Carl, >>>>>>>>>> What about something like this: >>>>>>>>>> >>>>>>>>>> <xsl:apply-templates >>>>>>>>>> select="/cms:wrapper/cms:include/page/bodytext" /> >>>>>>>>>> >>>>>>>>>> <xsl:template match="bodytext"> >>>>>>>>>> <xsl:value-of select="@firstname"/> >>>>>>>>>> <xsl:value-of select="@lastname"/> >>>>>>>>>> <xsl:value-of select="@email"/> >>>>>>>>>> </xsl:template> >>>>>>>>>> >>>>>>>>>> You'll of course need to make sure that your include has the >>>>>>>>>> attribute data="yes". >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> Alex >>>>>>>>>> >>>>>>>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>>>>>>> >>>>>>>>>>> Hi Alex, >>>>>>>>>>> >>>>>>>>>>> On one of the sites here in Hull I have a file for each >>>>>>>>>>> member of staff with the following dtd to define it: >>>>>>>>>>> >>>>>>>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>>>>>>> <!ELEMENT rightbox (html)> >>>>>>>>>>> <!ELEMENT bodytext >>>>>>>>>>> (photo,qualifications,researchinterests,researchcategories,biography,modulestaught,memberships,publications)> >>>>>>>>>>> >>>>>>>>>>> <!ELEMENT photo (html)> >>>>>>>>>>> <!ELEMENT qualifications (html)> >>>>>>>>>>> <!ELEMENT researchinterests (html)> >>>>>>>>>>> <!ELEMENT researchcategories (html)> >>>>>>>>>>> <!ELEMENT biography (html)> >>>>>>>>>>> <!ELEMENT modulestaught (html)> >>>>>>>>>>> <!ELEMENT memberships (html)> >>>>>>>>>>> <!ELEMENT publications (html)> >>>>>>>>>>> <!ELEMENT leftbox (html)> >>>>>>>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext >>>>>>>>>>> title CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>>>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>>>>>>> >>>>>>>>>>> I want to include the firstname, lastname and email for each >>>>>>>>>>> member of staff on an index page. At the moment I only seem >>>>>>>>>>> to be able to include everything on a staff page The code >>>>>>>>>>> I have is as follows: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <xsl:template name="bodytext"> >>>>>>>>>>> <xsl:for-each >>>>>>>>>>> select="/cms:wrapper/cms:include[@pattern='/people/staff/*.xml']"> >>>>>>>>>>> >>>>>>>>>>> <xsl:apply-templates /> >>>>>>>>>>> </xsl:for-each> >>>>>>>>>>> </xsl:template> >>>>>>>>>>> >>>>>>>>>>> I though I would be able to use: >>>>>>>>>>> <xsl:apply-templates >>>>>>>>>>> select="/cms:wrapper/cms:source/page/bodytext/@firstname" /> >>>>>>>>>>> >>>>>>>>>>> but that isn't working. Can you see what I'm doing wrong at >>>>>>>>>>> all? >>>>>>>>>>> >>>>>>>>>>> Cheers >>>>>>>>>>> Carl >>>>>>>>>>> >>>>>>>>>>> --************************************ >>>>>>>>>>> >>>>>>>>>>> Carl Barrow >>>>>>>>>>> Systems Integrator >>>>>>>>>>> e-Services >>>>>>>>>>> The University of Hull >>>>>>>>>>> Cottingham Road >>>>>>>>>>> Hull >>>>>>>>>>> HU6 7RX >>>>>>>>>>> Ext. 6838 >>>>>>>>>>> ************************************ >>>>>>>>>>> >>>>>>>>>>> ***************************************************************************************** >>>>>>>>>>> >>>>>>>>>>> To view the terms under which this email is distributed, >>>>>>>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>>>>>> ***************************************************************************************** >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ------------------------------------------------------- >>>>>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>>>>> services, security? >>>>>>>>>>> Get stuff done quickly with pre-integrated technology to >>>>>>>>>>> make your job easier >>>>>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>>>>> Apache Geronimo >>>>>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Hypercontent-users mailing list >>>>>>>>>>> Hyp...@li... >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------- >>>>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>>>> services, security? >>>>>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>>>>> your job easier >>>>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>>>> Apache Geronimo >>>>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Hypercontent-users mailing list >>>>>>>>>> Hyp...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>>>> >>>>>>>>> --************************************ >>>>>>>>> >>>>>>>>> Carl Barrow >>>>>>>>> Systems Integrator >>>>>>>>> e-Services >>>>>>>>> The University of Hull >>>>>>>>> Cottingham Road >>>>>>>>> Hull >>>>>>>>> HU6 7RX >>>>>>>>> Ext. 6838 >>>>>>>>> ************************************ >>>>>>>>> >>>>>>>>> ***************************************************************************************** >>>>>>>>> >>>>>>>>> To view the terms under which this email is distributed, >>>>>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>>>> ***************************************************************************************** >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>>>> security? >>>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>>> your job easier >>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>> Apache Geronimo >>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hypercontent-users mailing list >>>>>>>> Hyp...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>> >>>>>>> --************************************ >>>>>>> >>>>>>> Carl Barrow >>>>>>> Systems Integrator >>>>>>> e-Services >>>>>>> The University of Hull >>>>>>> Cottingham Road >>>>>>> Hull >>>>>>> HU6 7RX >>>>>>> Ext. 6838 >>>>>>> ************************************ >>>>>>> >>>>>>> ***************************************************************************************** >>>>>>> >>>>>>> To view the terms under which this email is distributed, please >>>>>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>> ***************************************************************************************** >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>> security? >>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>> your job easier >>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>> Geronimo >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>> >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>> >>>> >>>> --************************************ >>>> >>>> Carl Barrow >>>> Systems Integrator >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> ***************************************************************************************** >>>> >>>> To view the terms under which this email is distributed, please go >>>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>>> ***************************************************************************************** >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-04-28 13:45:57
|
HI Carl, The creation date is available via dublin core metadata, i.e. /cms:wrapper/cms:include/rdf:RDF/cfs:File/dc:date In the current release this is only a date stamp, so the sorting isn't reliable between items created on the same day. The CVS code is already updated so this is a date-time stamp. It's in ISO 8601 format ("yyyy-MM-dd HH:mm:ssZ") which means it can be sorted lexicographically without parsing the date. Cheers, Alex On Apr 28, 2006, at 6:41 AM, Carl Barrow wrote: > Hi Alex, > > I see... I think I'll go for the RSS rendered news with it's own > navigation file when I properly switch to version 2.0. I intend > this to be after the summer. News items on our main public site > could well get into the hundreds. > > For now, how would I actually get to the filedate. I can sort by > various parts of the XML file <xsl:sort select="@title"> but I need > to sort by the date the file was created/edited. > > Cheers > Carl > > Alex Vigdor wrote: >> Hi Carl, >> You can use an XSL sort at the point you apply-templates for >> "newsbodytext" to sort based on date. Part of the advantage of >> using a navigation file for this is overall better performance, >> especially if you get to the point where you're trying to pick the >> 5 most recent out of hundreds. >> >> Cheers, >> Alex >> >> On Apr 27, 2006, at 9:20 AM, Carl Barrow wrote: >> >>> This might actually be flawed. It seems the elements are numbers >>> in alphabetical order not as they are added so the numbers >>> actually change. So what I thought would be the latest 5 are >>> simply the first 5 in alphabetical order. Do you have any ideas >>> how to solve that? >>> >>> Cheers >>> Carl >>> >>> Carl Barrow wrote: >>>> Hi Alex, >>>> >>>> I didn't really want to create a specific navigation file for >>>> news and events so I've have set the news and events to order by >>>> date and done it as follows: >>>> >>>> <xsl:template match="newsbodytext"> >>>> <xsl:variable name="emailadd" select="@email"/> >>>> <xsl:variable name="pos" select="position()"/> >>>> <xsl:variable name="include" >>>> select="ancestor::cms:include"/> >>>> <xsl:if test="$pos < '5'"> >>>> <a href="{$rel-project-base}{$include/ >>>> @directory}{$include/@basename}.html"> >>>> <xsl:value-of select="@title"/> >>>> </a> >>>> <br/> >>>> <xsl:value-of select="summary"/> >>>> </xsl:if> >>>> </xsl:template> >>>> >>>> Is that an 'okay' way of doing it? >>>> >>>> Is the velocity template the one used for the ja-sig site? I >>>> have downloaded that and did use the RSS generation on a test >>>> site here. It works really well. However, at the moment since I >>>> am only live with 1.4 I haven't been able to use it for anything >>>> live. >>>> >>>> Cheers >>>> Carl >>>> >>>> >>>> >>>> Alex Vigdor wrote: >>>>> Hi Carl, >>>>> To generate a "top 5" list, I recommend creating a specific >>>>> navigation file to represent the list. You could set the root >>>>> nav-template to "/news/index.xml" and a child template to "/ >>>>> news/*.xml", or whatever the appropriate pattern is; then set >>>>> the root template to sort children by date descending, and set >>>>> the maxChildren attribute to 5. I also have a velocity >>>>> template that will render such a navigation file to RSS if >>>>> you're interested. >>>>> >>>>> Cheers, >>>>> Alex >>>>> >>>>> On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: >>>>> >>>>>> Hi Alex, >>>>>> >>>>>> This has worked very well, I am using it for news and events >>>>>> too. I am generating a news index but also want to add the >>>>>> latest 5 news items on the Homepage. I was thinking that I >>>>>> could use something like: >>>>>> >>>>>> <xsl:variable name="include" select="ancestor::cms:include >>>>>> [position() < 6]"/> >>>>>> >>>>>> But I don't seem to be able to get it to work. Am I going >>>>>> about it the right way? >>>>>> >>>>>> Cheers >>>>>> Carl >>>>>> >>>>>> Alex Vigdor wrote: >>>>>>> Hi Carl, >>>>>>> Something like >>>>>>> <xsl:variable name="include" >>>>>>> select="ancestor::cms:include"/> >>>>>>> <a href="{$rel-project-base}{$include/@directory} >>>>>>> {$include/@basename}.html"> >>>>>>> <xsl:value-of select="@firstname"/> >>>>>>> <xsl:value-of select="@lastname"/> >>>>>>> </a> >>>>>>> >>>>>>> By the way, have you considered using VCard for this >>>>>>> information? Then you could set it up to populate from LDAP, >>>>>>> and get addressbook integration as well. We'll often use >>>>>>> VCard for basic contact info, then use either additional >>>>>>> attributes in the XML for more specific info like office >>>>>>> hours, degrees, etc., or put it in the VCard note so it will >>>>>>> show up in your addressbook as well. >>>>>>> >>>>>>> Cheers, >>>>>>> Alex >>>>>>> >>>>>>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>>>>>> >>>>>>>> Thanks Alex, >>>>>>>> >>>>>>>> Thats working for me now. I've turned the email address >>>>>>>> into a link easy enough, but I want to turn the persons >>>>>>>> name into a link to their page. I have only just started >>>>>>>> looking at it now, do you have any pointers? >>>>>>>> >>>>>>>> Cheers >>>>>>>> Carl >>>>>>>> >>>>>>>> Alex Vigdor wrote: >>>>>>>>> Hi Carl, >>>>>>>>> What about something like this: >>>>>>>>> >>>>>>>>> <xsl:apply-templates select="/cms:wrapper/cms:include/page/ >>>>>>>>> bodytext" /> >>>>>>>>> >>>>>>>>> <xsl:template match="bodytext"> >>>>>>>>> <xsl:value-of select="@firstname"/> >>>>>>>>> <xsl:value-of select="@lastname"/> >>>>>>>>> <xsl:value-of select="@email"/> >>>>>>>>> </xsl:template> >>>>>>>>> >>>>>>>>> You'll of course need to make sure that your include has >>>>>>>>> the attribute data="yes". >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> Alex >>>>>>>>> >>>>>>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>>>>>> >>>>>>>>>> Hi Alex, >>>>>>>>>> >>>>>>>>>> On one of the sites here in Hull I have a file for each >>>>>>>>>> member of staff with the following dtd to define it: >>>>>>>>>> >>>>>>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>>>>>> <!ELEMENT rightbox (html)> >>>>>>>>>> <!ELEMENT bodytext >>>>>>>>>> (photo,qualifications,researchinterests,researchcategories,bi >>>>>>>>>> ography,modulestaught,memberships,publications)> >>>>>>>>>> <!ELEMENT photo (html)> >>>>>>>>>> <!ELEMENT qualifications (html)> >>>>>>>>>> <!ELEMENT researchinterests (html)> >>>>>>>>>> <!ELEMENT researchcategories (html)> >>>>>>>>>> <!ELEMENT biography (html)> >>>>>>>>>> <!ELEMENT modulestaught (html)> >>>>>>>>>> <!ELEMENT memberships (html)> >>>>>>>>>> <!ELEMENT publications (html)> >>>>>>>>>> <!ELEMENT leftbox (html)> >>>>>>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST >>>>>>>>>> bodytext title CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>>>>>> >>>>>>>>>> I want to include the firstname, lastname and email for >>>>>>>>>> each member of staff on an index page. At the moment I >>>>>>>>>> only seem to be able to include everything on a staff >>>>>>>>>> page The code I have is as follows: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> <xsl:template name="bodytext"> >>>>>>>>>> <xsl:for-each select="/cms:wrapper/cms:include >>>>>>>>>> [@pattern='/people/staff/*.xml']"> >>>>>>>>>> <xsl:apply-templates /> >>>>>>>>>> </xsl:for-each> >>>>>>>>>> </xsl:template> >>>>>>>>>> >>>>>>>>>> I though I would be able to use: >>>>>>>>>> <xsl:apply-templates select="/cms:wrapper/cms:source/page/ >>>>>>>>>> bodytext/@firstname" /> >>>>>>>>>> >>>>>>>>>> but that isn't working. Can you see what I'm doing wrong >>>>>>>>>> at all? >>>>>>>>>> >>>>>>>>>> Cheers >>>>>>>>>> Carl >>>>>>>>>> >>>>>>>>>> --************************************ >>>>>>>>>> >>>>>>>>>> Carl Barrow >>>>>>>>>> Systems Integrator >>>>>>>>>> e-Services >>>>>>>>>> The University of Hull >>>>>>>>>> Cottingham Road >>>>>>>>>> Hull >>>>>>>>>> HU6 7RX >>>>>>>>>> Ext. 6838 >>>>>>>>>> ************************************ >>>>>>>>>> >>>>>>>>>> ************************************************************* >>>>>>>>>> **************************** >>>>>>>>>> To view the terms under which this email is distributed, >>>>>>>>>> please go to http://www.hull.ac.uk/legal/ >>>>>>>>>> email_disclaimer.html >>>>>>>>>> ************************************************************* >>>>>>>>>> **************************** >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------------------------------- >>>>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>>>> services, security? >>>>>>>>>> Get stuff done quickly with pre-integrated technology to >>>>>>>>>> make your job easier >>>>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>>>> Apache Geronimo >>>>>>>>>> http://sel.as-us.falkag.net/sel? >>>>>>>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>>>> _______________________________________________ >>>>>>>>>> Hypercontent-users mailing list >>>>>>>>>> Hyp...@li... >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent- >>>>>>>>>> users >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------- >>>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>>> services, security? >>>>>>>>> Get stuff done quickly with pre-integrated technology to >>>>>>>>> make your job easier >>>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>>> Apache Geronimo >>>>>>>>> http://sel.as-us.falkag.net/sel? >>>>>>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>>> _______________________________________________ >>>>>>>>> Hypercontent-users mailing list >>>>>>>>> Hyp...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent- >>>>>>>>> users >>>>>>>> >>>>>>>> --************************************ >>>>>>>> >>>>>>>> Carl Barrow >>>>>>>> Systems Integrator >>>>>>>> e-Services >>>>>>>> The University of Hull >>>>>>>> Cottingham Road >>>>>>>> Hull >>>>>>>> HU6 7RX >>>>>>>> Ext. 6838 >>>>>>>> ************************************ >>>>>>>> >>>>>>>> *************************************************************** >>>>>>>> ************************** >>>>>>>> To view the terms under which this email is distributed, >>>>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>>> *************************************************************** >>>>>>>> ************************** >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>> services, security? >>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>> your job easier >>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>> Apache Geronimo >>>>>>> http://sel.as-us.falkag.net/sel? >>>>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>> _______________________________________________ >>>>>>> Hypercontent-users mailing list >>>>>>> Hyp...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>> >>>>>> --************************************ >>>>>> >>>>>> Carl Barrow >>>>>> Systems Integrator >>>>>> e-Services >>>>>> The University of Hull >>>>>> Cottingham Road >>>>>> Hull >>>>>> HU6 7RX >>>>>> Ext. 6838 >>>>>> ************************************ >>>>>> >>>>>> ***************************************************************** >>>>>> ************************ >>>>>> To view the terms under which this email is distributed, >>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>> ***************************************************************** >>>>>> ************************ >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make >>>>> your job easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>> Apache Geronimo >>>>> http://sel.as-us.falkag.net/sel? >>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> ******************************************************************** >>> ********************* >>> To view the terms under which this email is distributed, please >>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>> ******************************************************************** >>> ********************* >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |
From: Carl B. <C.P...@hu...> - 2006-04-28 10:41:30
|
Hi Alex, I see... I think I'll go for the RSS rendered news with it's own navigation file when I properly switch to version 2.0. I intend this to be after the summer. News items on our main public site could well get into the hundreds. For now, how would I actually get to the filedate. I can sort by various parts of the XML file <xsl:sort select="@title"> but I need to sort by the date the file was created/edited. Cheers Carl Alex Vigdor wrote: > Hi Carl, > You can use an XSL sort at the point you apply-templates for > "newsbodytext" to sort based on date. Part of the advantage of using > a navigation file for this is overall better performance, especially > if you get to the point where you're trying to pick the 5 most recent > out of hundreds. > > Cheers, > Alex > > On Apr 27, 2006, at 9:20 AM, Carl Barrow wrote: > >> This might actually be flawed. It seems the elements are numbers in >> alphabetical order not as they are added so the numbers actually >> change. So what I thought would be the latest 5 are simply the first >> 5 in alphabetical order. Do you have any ideas how to solve that? >> >> Cheers >> Carl >> >> Carl Barrow wrote: >>> Hi Alex, >>> >>> I didn't really want to create a specific navigation file for news >>> and events so I've have set the news and events to order by date and >>> done it as follows: >>> >>> <xsl:template match="newsbodytext"> >>> <xsl:variable name="emailadd" select="@email"/> >>> <xsl:variable name="pos" select="position()"/> >>> <xsl:variable name="include" select="ancestor::cms:include"/> >>> <xsl:if test="$pos < '5'"> >>> <a >>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>> >>> <xsl:value-of select="@title"/> >>> </a> >>> <br/> >>> <xsl:value-of select="summary"/> >>> </xsl:if> >>> </xsl:template> >>> >>> Is that an 'okay' way of doing it? >>> >>> Is the velocity template the one used for the ja-sig site? I have >>> downloaded that and did use the RSS generation on a test site here. >>> It works really well. However, at the moment since I am only live >>> with 1.4 I haven't been able to use it for anything live. >>> >>> Cheers >>> Carl >>> >>> >>> >>> Alex Vigdor wrote: >>>> Hi Carl, >>>> To generate a "top 5" list, I recommend creating a specific >>>> navigation file to represent the list. You could set the root >>>> nav-template to "/news/index.xml" and a child template to >>>> "/news/*.xml", or whatever the appropriate pattern is; then set the >>>> root template to sort children by date descending, and set the >>>> maxChildren attribute to 5. I also have a velocity template that >>>> will render such a navigation file to RSS if you're interested. >>>> >>>> Cheers, >>>> Alex >>>> >>>> On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: >>>> >>>>> Hi Alex, >>>>> >>>>> This has worked very well, I am using it for news and events >>>>> too. I am generating a news index but also want to add the latest >>>>> 5 news items on the Homepage. I was thinking that I could use >>>>> something like: >>>>> >>>>> <xsl:variable name="include" >>>>> select="ancestor::cms:include[position() < 6]"/> >>>>> >>>>> But I don't seem to be able to get it to work. Am I going about >>>>> it the right way? >>>>> >>>>> Cheers >>>>> Carl >>>>> >>>>> Alex Vigdor wrote: >>>>>> Hi Carl, >>>>>> Something like >>>>>> <xsl:variable name="include" select="ancestor::cms:include"/> >>>>>> <a >>>>>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>>>>> >>>>>> <xsl:value-of select="@firstname"/> >>>>>> <xsl:value-of select="@lastname"/> >>>>>> </a> >>>>>> >>>>>> By the way, have you considered using VCard for this >>>>>> information? Then you could set it up to populate from LDAP, and >>>>>> get addressbook integration as well. We'll often use VCard for >>>>>> basic contact info, then use either additional attributes in the >>>>>> XML for more specific info like office hours, degrees, etc., or >>>>>> put it in the VCard note so it will show up in your addressbook >>>>>> as well. >>>>>> >>>>>> Cheers, >>>>>> Alex >>>>>> >>>>>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>>>>> >>>>>>> Thanks Alex, >>>>>>> >>>>>>> Thats working for me now. I've turned the email address into a >>>>>>> link easy enough, but I want to turn the persons name into a >>>>>>> link to their page. I have only just started looking at it >>>>>>> now, do you have any pointers? >>>>>>> >>>>>>> Cheers >>>>>>> Carl >>>>>>> >>>>>>> Alex Vigdor wrote: >>>>>>>> Hi Carl, >>>>>>>> What about something like this: >>>>>>>> >>>>>>>> <xsl:apply-templates >>>>>>>> select="/cms:wrapper/cms:include/page/bodytext" /> >>>>>>>> >>>>>>>> <xsl:template match="bodytext"> >>>>>>>> <xsl:value-of select="@firstname"/> >>>>>>>> <xsl:value-of select="@lastname"/> >>>>>>>> <xsl:value-of select="@email"/> >>>>>>>> </xsl:template> >>>>>>>> >>>>>>>> You'll of course need to make sure that your include has the >>>>>>>> attribute data="yes". >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Alex >>>>>>>> >>>>>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>>>>> >>>>>>>>> Hi Alex, >>>>>>>>> >>>>>>>>> On one of the sites here in Hull I have a file for each member >>>>>>>>> of staff with the following dtd to define it: >>>>>>>>> >>>>>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>>>>> <!ELEMENT rightbox (html)> >>>>>>>>> <!ELEMENT bodytext >>>>>>>>> (photo,qualifications,researchinterests,researchcategories,biography,modulestaught,memberships,publications)> >>>>>>>>> >>>>>>>>> <!ELEMENT photo (html)> >>>>>>>>> <!ELEMENT qualifications (html)> >>>>>>>>> <!ELEMENT researchinterests (html)> >>>>>>>>> <!ELEMENT researchcategories (html)> >>>>>>>>> <!ELEMENT biography (html)> >>>>>>>>> <!ELEMENT modulestaught (html)> >>>>>>>>> <!ELEMENT memberships (html)> >>>>>>>>> <!ELEMENT publications (html)> >>>>>>>>> <!ELEMENT leftbox (html)> >>>>>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext >>>>>>>>> title CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>>>>> >>>>>>>>> I want to include the firstname, lastname and email for each >>>>>>>>> member of staff on an index page. At the moment I only seem >>>>>>>>> to be able to include everything on a staff page The code I >>>>>>>>> have is as follows: >>>>>>>>> >>>>>>>>> >>>>>>>>> <xsl:template name="bodytext"> >>>>>>>>> <xsl:for-each >>>>>>>>> select="/cms:wrapper/cms:include[@pattern='/people/staff/*.xml']"> >>>>>>>>> >>>>>>>>> <xsl:apply-templates /> >>>>>>>>> </xsl:for-each> >>>>>>>>> </xsl:template> >>>>>>>>> >>>>>>>>> I though I would be able to use: >>>>>>>>> <xsl:apply-templates >>>>>>>>> select="/cms:wrapper/cms:source/page/bodytext/@firstname" /> >>>>>>>>> >>>>>>>>> but that isn't working. Can you see what I'm doing wrong at all? >>>>>>>>> >>>>>>>>> Cheers >>>>>>>>> Carl >>>>>>>>> >>>>>>>>> --************************************ >>>>>>>>> >>>>>>>>> Carl Barrow >>>>>>>>> Systems Integrator >>>>>>>>> e-Services >>>>>>>>> The University of Hull >>>>>>>>> Cottingham Road >>>>>>>>> Hull >>>>>>>>> HU6 7RX >>>>>>>>> Ext. 6838 >>>>>>>>> ************************************ >>>>>>>>> >>>>>>>>> ***************************************************************************************** >>>>>>>>> >>>>>>>>> To view the terms under which this email is distributed, >>>>>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>>>> ***************************************************************************************** >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------- >>>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>>> services, security? >>>>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>>>> your job easier >>>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>>> Apache Geronimo >>>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Hypercontent-users mailing list >>>>>>>>> Hyp...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>>>> security? >>>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>>> your job easier >>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>> Apache Geronimo >>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hypercontent-users mailing list >>>>>>>> Hyp...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>> >>>>>>> --************************************ >>>>>>> >>>>>>> Carl Barrow >>>>>>> Systems Integrator >>>>>>> e-Services >>>>>>> The University of Hull >>>>>>> Cottingham Road >>>>>>> Hull >>>>>>> HU6 7RX >>>>>>> Ext. 6838 >>>>>>> ************************************ >>>>>>> >>>>>>> ***************************************************************************************** >>>>>>> >>>>>>> To view the terms under which this email is distributed, please >>>>>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>> ***************************************************************************************** >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>> security? >>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>> your job easier >>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>> Geronimo >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>> >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>> >>>>> --************************************ >>>>> >>>>> Carl Barrow >>>>> Systems Integrator >>>>> e-Services >>>>> The University of Hull >>>>> Cottingham Road >>>>> Hull >>>>> HU6 7RX >>>>> Ext. 6838 >>>>> ************************************ >>>>> >>>>> ***************************************************************************************** >>>>> >>>>> To view the terms under which this email is distributed, please go >>>>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>> ***************************************************************************************** >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-04-27 18:20:14
|
Hi Carl, You can use an XSL sort at the point you apply-templates for "newsbodytext" to sort based on date. Part of the advantage of using a navigation file for this is overall better performance, especially if you get to the point where you're trying to pick the 5 most recent out of hundreds. Cheers, Alex On Apr 27, 2006, at 9:20 AM, Carl Barrow wrote: > This might actually be flawed. It seems the elements are numbers > in alphabetical order not as they are added so the numbers actually > change. So what I thought would be the latest 5 are simply the > first 5 in alphabetical order. Do you have any ideas how to solve > that? > > Cheers > Carl > > Carl Barrow wrote: >> Hi Alex, >> >> I didn't really want to create a specific navigation file for news >> and events so I've have set the news and events to order by date >> and done it as follows: >> >> <xsl:template match="newsbodytext"> >> <xsl:variable name="emailadd" select="@email"/> >> <xsl:variable name="pos" select="position()"/> >> <xsl:variable name="include" select="ancestor::cms:include"/> >> <xsl:if test="$pos < '5'"> >> <a href="{$rel-project-base}{$include/ >> @directory}{$include/@basename}.html"> >> <xsl:value-of select="@title"/> >> </a> >> <br/> >> <xsl:value-of select="summary"/> >> </xsl:if> >> </xsl:template> >> >> Is that an 'okay' way of doing it? >> >> Is the velocity template the one used for the ja-sig site? I have >> downloaded that and did use the RSS generation on a test site >> here. It works really well. However, at the moment since I am >> only live with 1.4 I haven't been able to use it for anything live. >> >> Cheers >> Carl >> >> >> >> Alex Vigdor wrote: >>> Hi Carl, >>> To generate a "top 5" list, I recommend creating a specific >>> navigation file to represent the list. You could set the root >>> nav-template to "/news/index.xml" and a child template to "/news/ >>> *.xml", or whatever the appropriate pattern is; then set the root >>> template to sort children by date descending, and set the >>> maxChildren attribute to 5. I also have a velocity template that >>> will render such a navigation file to RSS if you're interested. >>> >>> Cheers, >>> Alex >>> >>> On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: >>> >>>> Hi Alex, >>>> >>>> This has worked very well, I am using it for news and events >>>> too. I am generating a news index but also want to add the >>>> latest 5 news items on the Homepage. I was thinking that I >>>> could use something like: >>>> >>>> <xsl:variable name="include" select="ancestor::cms:include >>>> [position() < 6]"/> >>>> >>>> But I don't seem to be able to get it to work. Am I going >>>> about it the right way? >>>> >>>> Cheers >>>> Carl >>>> >>>> Alex Vigdor wrote: >>>>> Hi Carl, >>>>> Something like >>>>> <xsl:variable name="include" select="ancestor::cms:include"/> >>>>> <a href="{$rel-project-base}{$include/@directory}{$include/ >>>>> @basename}.html"> >>>>> <xsl:value-of select="@firstname"/> >>>>> <xsl:value-of select="@lastname"/> >>>>> </a> >>>>> >>>>> By the way, have you considered using VCard for this >>>>> information? Then you could set it up to populate from LDAP, >>>>> and get addressbook integration as well. We'll often use VCard >>>>> for basic contact info, then use either additional attributes >>>>> in the XML for more specific info like office hours, degrees, >>>>> etc., or put it in the VCard note so it will show up in your >>>>> addressbook as well. >>>>> >>>>> Cheers, >>>>> Alex >>>>> >>>>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>>>> >>>>>> Thanks Alex, >>>>>> >>>>>> Thats working for me now. I've turned the email address into >>>>>> a link easy enough, but I want to turn the persons name into >>>>>> a link to their page. I have only just started looking at it >>>>>> now, do you have any pointers? >>>>>> >>>>>> Cheers >>>>>> Carl >>>>>> >>>>>> Alex Vigdor wrote: >>>>>>> Hi Carl, >>>>>>> What about something like this: >>>>>>> >>>>>>> <xsl:apply-templates select="/cms:wrapper/cms:include/page/ >>>>>>> bodytext" /> >>>>>>> >>>>>>> <xsl:template match="bodytext"> >>>>>>> <xsl:value-of select="@firstname"/> >>>>>>> <xsl:value-of select="@lastname"/> >>>>>>> <xsl:value-of select="@email"/> >>>>>>> </xsl:template> >>>>>>> >>>>>>> You'll of course need to make sure that your include has the >>>>>>> attribute data="yes". >>>>>>> >>>>>>> Cheers, >>>>>>> Alex >>>>>>> >>>>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>>>> >>>>>>>> Hi Alex, >>>>>>>> >>>>>>>> On one of the sites here in Hull I have a file for each >>>>>>>> member of staff with the following dtd to define it: >>>>>>>> >>>>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>>>> <!ELEMENT rightbox (html)> >>>>>>>> <!ELEMENT bodytext >>>>>>>> (photo,qualifications,researchinterests,researchcategories,biog >>>>>>>> raphy,modulestaught,memberships,publications)> >>>>>>>> <!ELEMENT photo (html)> >>>>>>>> <!ELEMENT qualifications (html)> >>>>>>>> <!ELEMENT researchinterests (html)> >>>>>>>> <!ELEMENT researchcategories (html)> >>>>>>>> <!ELEMENT biography (html)> >>>>>>>> <!ELEMENT modulestaught (html)> >>>>>>>> <!ELEMENT memberships (html)> >>>>>>>> <!ELEMENT publications (html)> >>>>>>>> <!ELEMENT leftbox (html)> >>>>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext >>>>>>>> title CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>>>> >>>>>>>> I want to include the firstname, lastname and email for each >>>>>>>> member of staff on an index page. At the moment I only seem >>>>>>>> to be able to include everything on a staff page The code >>>>>>>> I have is as follows: >>>>>>>> >>>>>>>> >>>>>>>> <xsl:template name="bodytext"> >>>>>>>> <xsl:for-each select="/cms:wrapper/cms:include[@pattern='/ >>>>>>>> people/staff/*.xml']"> >>>>>>>> <xsl:apply-templates /> >>>>>>>> </xsl:for-each> >>>>>>>> </xsl:template> >>>>>>>> >>>>>>>> I though I would be able to use: >>>>>>>> <xsl:apply-templates select="/cms:wrapper/cms:source/page/ >>>>>>>> bodytext/@firstname" /> >>>>>>>> >>>>>>>> but that isn't working. Can you see what I'm doing wrong at >>>>>>>> all? >>>>>>>> >>>>>>>> Cheers >>>>>>>> Carl >>>>>>>> >>>>>>>> --************************************ >>>>>>>> >>>>>>>> Carl Barrow >>>>>>>> Systems Integrator >>>>>>>> e-Services >>>>>>>> The University of Hull >>>>>>>> Cottingham Road >>>>>>>> Hull >>>>>>>> HU6 7RX >>>>>>>> Ext. 6838 >>>>>>>> ************************************ >>>>>>>> >>>>>>>> *************************************************************** >>>>>>>> ************************** >>>>>>>> To view the terms under which this email is distributed, >>>>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>>> *************************************************************** >>>>>>>> ************************** >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>>> services, security? >>>>>>>> Get stuff done quickly with pre-integrated technology to >>>>>>>> make your job easier >>>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>>> Apache Geronimo >>>>>>>> http://sel.as-us.falkag.net/sel? >>>>>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>>> _______________________________________________ >>>>>>>> Hypercontent-users mailing list >>>>>>>> Hyp...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> Using Tomcat but need to do more? Need to support web >>>>>>> services, security? >>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>> your job easier >>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>> Apache Geronimo >>>>>>> http://sel.as-us.falkag.net/sel? >>>>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>> _______________________________________________ >>>>>>> Hypercontent-users mailing list >>>>>>> Hyp...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>> >>>>>> --************************************ >>>>>> >>>>>> Carl Barrow >>>>>> Systems Integrator >>>>>> e-Services >>>>>> The University of Hull >>>>>> Cottingham Road >>>>>> Hull >>>>>> HU6 7RX >>>>>> Ext. 6838 >>>>>> ************************************ >>>>>> >>>>>> ***************************************************************** >>>>>> ************************ >>>>>> To view the terms under which this email is distributed, >>>>>> please go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>> ***************************************************************** >>>>>> ************************ >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make >>>>> your job easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>> Apache Geronimo >>>>> http://sel.as-us.falkag.net/sel? >>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> --************************************ >>>> >>>> Carl Barrow >>>> Systems Integrator >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> ******************************************************************* >>>> ********************** >>>> To view the terms under which this email is distributed, please >>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>> ******************************************************************* >>>> ********************** >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make >>> your job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |
From: Carl B. <C.P...@hu...> - 2006-04-27 13:20:40
|
This might actually be flawed. It seems the elements are numbers in alphabetical order not as they are added so the numbers actually change. So what I thought would be the latest 5 are simply the first 5 in alphabetical order. Do you have any ideas how to solve that? Cheers Carl Carl Barrow wrote: > Hi Alex, > > I didn't really want to create a specific navigation file for news and > events so I've have set the news and events to order by date and done > it as follows: > > <xsl:template match="newsbodytext"> > <xsl:variable name="emailadd" select="@email"/> > <xsl:variable name="pos" select="position()"/> > <xsl:variable name="include" select="ancestor::cms:include"/> > <xsl:if test="$pos < '5'"> > <a > href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> > <xsl:value-of select="@title"/> > </a> > <br/> > <xsl:value-of select="summary"/> > </xsl:if> > </xsl:template> > > Is that an 'okay' way of doing it? > > Is the velocity template the one used for the ja-sig site? I have > downloaded that and did use the RSS generation on a test site here. It > works really well. However, at the moment since I am only live with > 1.4 I haven't been able to use it for anything live. > > Cheers > Carl > > > > Alex Vigdor wrote: >> Hi Carl, >> To generate a "top 5" list, I recommend creating a specific >> navigation file to represent the list. You could set the root >> nav-template to "/news/index.xml" and a child template to >> "/news/*.xml", or whatever the appropriate pattern is; then set the >> root template to sort children by date descending, and set the >> maxChildren attribute to 5. I also have a velocity template that >> will render such a navigation file to RSS if you're interested. >> >> Cheers, >> Alex >> >> On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: >> >>> Hi Alex, >>> >>> This has worked very well, I am using it for news and events too. >>> I am generating a news index but also want to add the latest 5 news >>> items on the Homepage. I was thinking that I could use something like: >>> >>> <xsl:variable name="include" >>> select="ancestor::cms:include[position() < 6]"/> >>> >>> But I don't seem to be able to get it to work. Am I going about it >>> the right way? >>> >>> Cheers >>> Carl >>> >>> Alex Vigdor wrote: >>>> Hi Carl, >>>> Something like >>>> <xsl:variable name="include" select="ancestor::cms:include"/> >>>> <a >>>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>>> >>>> <xsl:value-of select="@firstname"/> >>>> <xsl:value-of select="@lastname"/> >>>> </a> >>>> >>>> By the way, have you considered using VCard for this information? >>>> Then you could set it up to populate from LDAP, and get addressbook >>>> integration as well. We'll often use VCard for basic contact info, >>>> then use either additional attributes in the XML for more specific >>>> info like office hours, degrees, etc., or put it in the VCard note >>>> so it will show up in your addressbook as well. >>>> >>>> Cheers, >>>> Alex >>>> >>>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>>> >>>>> Thanks Alex, >>>>> >>>>> Thats working for me now. I've turned the email address into a >>>>> link easy enough, but I want to turn the persons name into a link >>>>> to their page. I have only just started looking at it now, do >>>>> you have any pointers? >>>>> >>>>> Cheers >>>>> Carl >>>>> >>>>> Alex Vigdor wrote: >>>>>> Hi Carl, >>>>>> What about something like this: >>>>>> >>>>>> <xsl:apply-templates >>>>>> select="/cms:wrapper/cms:include/page/bodytext" /> >>>>>> >>>>>> <xsl:template match="bodytext"> >>>>>> <xsl:value-of select="@firstname"/> >>>>>> <xsl:value-of select="@lastname"/> >>>>>> <xsl:value-of select="@email"/> >>>>>> </xsl:template> >>>>>> >>>>>> You'll of course need to make sure that your include has the >>>>>> attribute data="yes". >>>>>> >>>>>> Cheers, >>>>>> Alex >>>>>> >>>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>>> >>>>>>> Hi Alex, >>>>>>> >>>>>>> On one of the sites here in Hull I have a file for each member >>>>>>> of staff with the following dtd to define it: >>>>>>> >>>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>>> <!ELEMENT rightbox (html)> >>>>>>> <!ELEMENT bodytext >>>>>>> (photo,qualifications,researchinterests,researchcategories,biography,modulestaught,memberships,publications)> >>>>>>> >>>>>>> <!ELEMENT photo (html)> >>>>>>> <!ELEMENT qualifications (html)> >>>>>>> <!ELEMENT researchinterests (html)> >>>>>>> <!ELEMENT researchcategories (html)> >>>>>>> <!ELEMENT biography (html)> >>>>>>> <!ELEMENT modulestaught (html)> >>>>>>> <!ELEMENT memberships (html)> >>>>>>> <!ELEMENT publications (html)> >>>>>>> <!ELEMENT leftbox (html)> >>>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext >>>>>>> title CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>>> >>>>>>> I want to include the firstname, lastname and email for each >>>>>>> member of staff on an index page. At the moment I only seem to >>>>>>> be able to include everything on a staff page The code I have >>>>>>> is as follows: >>>>>>> >>>>>>> >>>>>>> <xsl:template name="bodytext"> >>>>>>> <xsl:for-each >>>>>>> select="/cms:wrapper/cms:include[@pattern='/people/staff/*.xml']"> >>>>>>> <xsl:apply-templates /> >>>>>>> </xsl:for-each> >>>>>>> </xsl:template> >>>>>>> >>>>>>> I though I would be able to use: >>>>>>> <xsl:apply-templates >>>>>>> select="/cms:wrapper/cms:source/page/bodytext/@firstname" /> >>>>>>> >>>>>>> but that isn't working. Can you see what I'm doing wrong at all? >>>>>>> >>>>>>> Cheers >>>>>>> Carl >>>>>>> >>>>>>> --************************************ >>>>>>> >>>>>>> Carl Barrow >>>>>>> Systems Integrator >>>>>>> e-Services >>>>>>> The University of Hull >>>>>>> Cottingham Road >>>>>>> Hull >>>>>>> HU6 7RX >>>>>>> Ext. 6838 >>>>>>> ************************************ >>>>>>> >>>>>>> ***************************************************************************************** >>>>>>> >>>>>>> To view the terms under which this email is distributed, please >>>>>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>>> ***************************************************************************************** >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>>> security? >>>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>>> your job easier >>>>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>>>> Apache Geronimo >>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Hypercontent-users mailing list >>>>>>> Hyp...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>> security? >>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>> your job easier >>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>> Geronimo >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>> >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>> >>>>> --************************************ >>>>> >>>>> Carl Barrow >>>>> Systems Integrator >>>>> e-Services >>>>> The University of Hull >>>>> Cottingham Road >>>>> Hull >>>>> HU6 7RX >>>>> Ext. 6838 >>>>> ************************************ >>>>> >>>>> ***************************************************************************************** >>>>> >>>>> To view the terms under which this email is distributed, please go >>>>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>> ***************************************************************************************** >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> ***************************************************************************************** >>> >>> To view the terms under which this email is distributed, please go >>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>> ***************************************************************************************** >>> >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Carl B. <C.P...@hu...> - 2006-04-27 12:41:28
|
Hi Alex, I didn't really want to create a specific navigation file for news and events so I've have set the news and events to order by date and done it as follows: <xsl:template match="newsbodytext"> <xsl:variable name="emailadd" select="@email"/> <xsl:variable name="pos" select="position()"/> <xsl:variable name="include" select="ancestor::cms:include"/> <xsl:if test="$pos < '5'"> <a href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> <xsl:value-of select="@title"/> </a> <br/> <xsl:value-of select="summary"/> </xsl:if> </xsl:template> Is that an 'okay' way of doing it? Is the velocity template the one used for the ja-sig site? I have downloaded that and did use the RSS generation on a test site here. It works really well. However, at the moment since I am only live with 1.4 I haven't been able to use it for anything live. Cheers Carl Alex Vigdor wrote: > Hi Carl, > To generate a "top 5" list, I recommend creating a specific > navigation file to represent the list. You could set the root > nav-template to "/news/index.xml" and a child template to > "/news/*.xml", or whatever the appropriate pattern is; then set the > root template to sort children by date descending, and set the > maxChildren attribute to 5. I also have a velocity template that will > render such a navigation file to RSS if you're interested. > > Cheers, > Alex > > On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: > >> Hi Alex, >> >> This has worked very well, I am using it for news and events too. I >> am generating a news index but also want to add the latest 5 news >> items on the Homepage. I was thinking that I could use something like: >> >> <xsl:variable name="include" select="ancestor::cms:include[position() >> < 6]"/> >> >> But I don't seem to be able to get it to work. Am I going about it >> the right way? >> >> Cheers >> Carl >> >> Alex Vigdor wrote: >>> Hi Carl, >>> Something like >>> <xsl:variable name="include" select="ancestor::cms:include"/> >>> <a >>> href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> >>> >>> <xsl:value-of select="@firstname"/> >>> <xsl:value-of select="@lastname"/> >>> </a> >>> >>> By the way, have you considered using VCard for this information? >>> Then you could set it up to populate from LDAP, and get addressbook >>> integration as well. We'll often use VCard for basic contact info, >>> then use either additional attributes in the XML for more specific >>> info like office hours, degrees, etc., or put it in the VCard note >>> so it will show up in your addressbook as well. >>> >>> Cheers, >>> Alex >>> >>> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >>> >>>> Thanks Alex, >>>> >>>> Thats working for me now. I've turned the email address into a >>>> link easy enough, but I want to turn the persons name into a link >>>> to their page. I have only just started looking at it now, do you >>>> have any pointers? >>>> >>>> Cheers >>>> Carl >>>> >>>> Alex Vigdor wrote: >>>>> Hi Carl, >>>>> What about something like this: >>>>> >>>>> <xsl:apply-templates >>>>> select="/cms:wrapper/cms:include/page/bodytext" /> >>>>> >>>>> <xsl:template match="bodytext"> >>>>> <xsl:value-of select="@firstname"/> >>>>> <xsl:value-of select="@lastname"/> >>>>> <xsl:value-of select="@email"/> >>>>> </xsl:template> >>>>> >>>>> You'll of course need to make sure that your include has the >>>>> attribute data="yes". >>>>> >>>>> Cheers, >>>>> Alex >>>>> >>>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>>> >>>>>> Hi Alex, >>>>>> >>>>>> On one of the sites here in Hull I have a file for each member of >>>>>> staff with the following dtd to define it: >>>>>> >>>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>>> <!ELEMENT rightbox (html)> >>>>>> <!ELEMENT bodytext >>>>>> (photo,qualifications,researchinterests,researchcategories,biography,modulestaught,memberships,publications)> >>>>>> >>>>>> <!ELEMENT photo (html)> >>>>>> <!ELEMENT qualifications (html)> >>>>>> <!ELEMENT researchinterests (html)> >>>>>> <!ELEMENT researchcategories (html)> >>>>>> <!ELEMENT biography (html)> >>>>>> <!ELEMENT modulestaught (html)> >>>>>> <!ELEMENT memberships (html)> >>>>>> <!ELEMENT publications (html)> >>>>>> <!ELEMENT leftbox (html)> >>>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext title >>>>>> CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>>> >>>>>> I want to include the firstname, lastname and email for each >>>>>> member of staff on an index page. At the moment I only seem to >>>>>> be able to include everything on a staff page The code I have >>>>>> is as follows: >>>>>> >>>>>> >>>>>> <xsl:template name="bodytext"> >>>>>> <xsl:for-each >>>>>> select="/cms:wrapper/cms:include[@pattern='/people/staff/*.xml']"> >>>>>> <xsl:apply-templates /> >>>>>> </xsl:for-each> >>>>>> </xsl:template> >>>>>> >>>>>> I though I would be able to use: >>>>>> <xsl:apply-templates >>>>>> select="/cms:wrapper/cms:source/page/bodytext/@firstname" /> >>>>>> >>>>>> but that isn't working. Can you see what I'm doing wrong at all? >>>>>> >>>>>> Cheers >>>>>> Carl >>>>>> >>>>>> --************************************ >>>>>> >>>>>> Carl Barrow >>>>>> Systems Integrator >>>>>> e-Services >>>>>> The University of Hull >>>>>> Cottingham Road >>>>>> Hull >>>>>> HU6 7RX >>>>>> Ext. 6838 >>>>>> ************************************ >>>>>> >>>>>> ***************************************************************************************** >>>>>> >>>>>> To view the terms under which this email is distributed, please >>>>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>>> ***************************************************************************************** >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> Using Tomcat but need to do more? Need to support web services, >>>>>> security? >>>>>> Get stuff done quickly with pre-integrated technology to make >>>>>> your job easier >>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>>> Geronimo >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>>> >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make your >>>>> job easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>> Geronimo >>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>> >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> --************************************ >>>> >>>> Carl Barrow >>>> Systems Integrator >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> ***************************************************************************************** >>>> >>>> To view the terms under which this email is distributed, please go >>>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>>> ***************************************************************************************** >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-04-26 14:14:29
|
Hi Carl, To generate a "top 5" list, I recommend creating a specific navigation file to represent the list. You could set the root nav- template to "/news/index.xml" and a child template to "/news/*.xml", or whatever the appropriate pattern is; then set the root template to sort children by date descending, and set the maxChildren attribute to 5. I also have a velocity template that will render such a navigation file to RSS if you're interested. Cheers, Alex On Apr 26, 2006, at 7:31 AM, Carl Barrow wrote: > Hi Alex, > > This has worked very well, I am using it for news and events too. > I am generating a news index but also want to add the latest 5 news > items on the Homepage. I was thinking that I could use something > like: > > <xsl:variable name="include" select="ancestor::cms:include[position > () < 6]"/> > > But I don't seem to be able to get it to work. Am I going about > it the right way? > > Cheers > Carl > > Alex Vigdor wrote: >> Hi Carl, >> Something like >> <xsl:variable name="include" select="ancestor::cms:include"/> >> <a href="{$rel-project-base}{$include/@directory}{$include/ >> @basename}.html"> >> <xsl:value-of select="@firstname"/> >> <xsl:value-of select="@lastname"/> >> </a> >> >> By the way, have you considered using VCard for this information? >> Then you could set it up to populate from LDAP, and get >> addressbook integration as well. We'll often use VCard for basic >> contact info, then use either additional attributes in the XML for >> more specific info like office hours, degrees, etc., or put it in >> the VCard note so it will show up in your addressbook as well. >> >> Cheers, >> Alex >> >> On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: >> >>> Thanks Alex, >>> >>> Thats working for me now. I've turned the email address into a >>> link easy enough, but I want to turn the persons name into a >>> link to their page. I have only just started looking at it now, >>> do you have any pointers? >>> >>> Cheers >>> Carl >>> >>> Alex Vigdor wrote: >>>> Hi Carl, >>>> What about something like this: >>>> >>>> <xsl:apply-templates select="/cms:wrapper/cms:include/page/ >>>> bodytext" /> >>>> >>>> <xsl:template match="bodytext"> >>>> <xsl:value-of select="@firstname"/> >>>> <xsl:value-of select="@lastname"/> >>>> <xsl:value-of select="@email"/> >>>> </xsl:template> >>>> >>>> You'll of course need to make sure that your include has the >>>> attribute data="yes". >>>> >>>> Cheers, >>>> Alex >>>> >>>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>>> >>>>> Hi Alex, >>>>> >>>>> On one of the sites here in Hull I have a file for each member >>>>> of staff with the following dtd to define it: >>>>> >>>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>>> <!ELEMENT rightbox (html)> >>>>> <!ELEMENT bodytext >>>>> (photo,qualifications,researchinterests,researchcategories,biograp >>>>> hy,modulestaught,memberships,publications)> >>>>> <!ELEMENT photo (html)> >>>>> <!ELEMENT qualifications (html)> >>>>> <!ELEMENT researchinterests (html)> >>>>> <!ELEMENT researchcategories (html)> >>>>> <!ELEMENT biography (html)> >>>>> <!ELEMENT modulestaught (html)> >>>>> <!ELEMENT memberships (html)> >>>>> <!ELEMENT publications (html)> >>>>> <!ELEMENT leftbox (html)> >>>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext >>>>> title CDATA #REQUIRED> >>>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>>> >>>>> I want to include the firstname, lastname and email for each >>>>> member of staff on an index page. At the moment I only seem to >>>>> be able to include everything on a staff page The code I have >>>>> is as follows: >>>>> >>>>> >>>>> <xsl:template name="bodytext"> >>>>> <xsl:for-each select="/cms:wrapper/cms:include[@pattern='/ >>>>> people/staff/*.xml']"> >>>>> <xsl:apply-templates /> >>>>> </xsl:for-each> >>>>> </xsl:template> >>>>> >>>>> I though I would be able to use: >>>>> <xsl:apply-templates select="/cms:wrapper/cms:source/page/ >>>>> bodytext/@firstname" /> >>>>> >>>>> but that isn't working. Can you see what I'm doing wrong at all? >>>>> >>>>> Cheers >>>>> Carl >>>>> >>>>> --************************************ >>>>> >>>>> Carl Barrow >>>>> Systems Integrator >>>>> e-Services >>>>> The University of Hull >>>>> Cottingham Road >>>>> Hull >>>>> HU6 7RX >>>>> Ext. 6838 >>>>> ************************************ >>>>> >>>>> ****************************************************************** >>>>> *********************** >>>>> To view the terms under which this email is distributed, please >>>>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>>>> ****************************************************************** >>>>> *********************** >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make >>>>> your job easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>>> Apache Geronimo >>>>> http://sel.as-us.falkag.net/sel? >>>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make >>>> your job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on >>>> Apache Geronimo >>>> http://sel.as-us.falkag.net/sel? >>>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> ******************************************************************** >>> ********************* >>> To view the terms under which this email is distributed, please >>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>> ******************************************************************** >>> ********************* >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |
From: Carl B. <C.P...@hu...> - 2006-04-26 11:31:30
|
Hi Alex, This has worked very well, I am using it for news and events too. I am generating a news index but also want to add the latest 5 news items on the Homepage. I was thinking that I could use something like: <xsl:variable name="include" select="ancestor::cms:include[position() < 6]"/> But I don't seem to be able to get it to work. Am I going about it the right way? Cheers Carl Alex Vigdor wrote: > Hi Carl, > Something like > <xsl:variable name="include" select="ancestor::cms:include"/> > <a > href="{$rel-project-base}{$include/@directory}{$include/@basename}.html"> > <xsl:value-of select="@firstname"/> > <xsl:value-of select="@lastname"/> > </a> > > By the way, have you considered using VCard for this information? > Then you could set it up to populate from LDAP, and get addressbook > integration as well. We'll often use VCard for basic contact info, > then use either additional attributes in the XML for more specific > info like office hours, degrees, etc., or put it in the VCard note so > it will show up in your addressbook as well. > > Cheers, > Alex > > On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: > >> Thanks Alex, >> >> Thats working for me now. I've turned the email address into a link >> easy enough, but I want to turn the persons name into a link to >> their page. I have only just started looking at it now, do you have >> any pointers? >> >> Cheers >> Carl >> >> Alex Vigdor wrote: >>> Hi Carl, >>> What about something like this: >>> >>> <xsl:apply-templates select="/cms:wrapper/cms:include/page/bodytext" /> >>> >>> <xsl:template match="bodytext"> >>> <xsl:value-of select="@firstname"/> >>> <xsl:value-of select="@lastname"/> >>> <xsl:value-of select="@email"/> >>> </xsl:template> >>> >>> You'll of course need to make sure that your include has the >>> attribute data="yes". >>> >>> Cheers, >>> Alex >>> >>> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >>> >>>> Hi Alex, >>>> >>>> On one of the sites here in Hull I have a file for each member of >>>> staff with the following dtd to define it: >>>> >>>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>>> <!ELEMENT rightbox (html)> >>>> <!ELEMENT bodytext >>>> (photo,qualifications,researchinterests,researchcategories,biography,modulestaught,memberships,publications)> >>>> >>>> <!ELEMENT photo (html)> >>>> <!ELEMENT qualifications (html)> >>>> <!ELEMENT researchinterests (html)> >>>> <!ELEMENT researchcategories (html)> >>>> <!ELEMENT biography (html)> >>>> <!ELEMENT modulestaught (html)> >>>> <!ELEMENT memberships (html)> >>>> <!ELEMENT publications (html)> >>>> <!ELEMENT leftbox (html)> >>>> <!ATTLIST rightbox title CDATA #REQUIRED> >>>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext title >>>> CDATA #REQUIRED> >>>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>>> <!ATTLIST bodytext email CDATA #REQUIRED> >>>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>>> >>>> I want to include the firstname, lastname and email for each member >>>> of staff on an index page. At the moment I only seem to be able >>>> to include everything on a staff page The code I have is as follows: >>>> >>>> >>>> <xsl:template name="bodytext"> >>>> <xsl:for-each >>>> select="/cms:wrapper/cms:include[@pattern='/people/staff/*.xml']"> >>>> <xsl:apply-templates /> >>>> </xsl:for-each> >>>> </xsl:template> >>>> >>>> I though I would be able to use: >>>> <xsl:apply-templates >>>> select="/cms:wrapper/cms:source/page/bodytext/@firstname" /> >>>> >>>> but that isn't working. Can you see what I'm doing wrong at all? >>>> >>>> Cheers >>>> Carl >>>> >>>> --************************************ >>>> >>>> Carl Barrow >>>> Systems Integrator >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> ***************************************************************************************** >>>> >>>> To view the terms under which this email is distributed, please go >>>> to http://www.hull.ac.uk/legal/email_disclaimer.html >>>> ***************************************************************************************** >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your >>> job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> --************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> ***************************************************************************************** >> >> To view the terms under which this email is distributed, please go to >> http://www.hull.ac.uk/legal/email_disclaimer.html >> ***************************************************************************************** >> > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ ***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <av...@co...> - 2006-04-24 16:38:50
|
Hi Carl, Something like <xsl:variable name="include" select="ancestor::cms:include"/> <a href="{$rel-project-base}{$include/@directory}{$include/ @basename}.html"> <xsl:value-of select="@firstname"/> <xsl:value-of select="@lastname"/> </a> By the way, have you considered using VCard for this information? Then you could set it up to populate from LDAP, and get addressbook integration as well. We'll often use VCard for basic contact info, then use either additional attributes in the XML for more specific info like office hours, degrees, etc., or put it in the VCard note so it will show up in your addressbook as well. Cheers, Alex On Apr 24, 2006, at 11:13 AM, Carl Barrow wrote: > Thanks Alex, > > Thats working for me now. I've turned the email address into a > link easy enough, but I want to turn the persons name into a link > to their page. I have only just started looking at it now, do you > have any pointers? > > Cheers > Carl > > Alex Vigdor wrote: >> Hi Carl, >> What about something like this: >> >> <xsl:apply-templates select="/cms:wrapper/cms:include/page/ >> bodytext" /> >> >> <xsl:template match="bodytext"> >> <xsl:value-of select="@firstname"/> >> <xsl:value-of select="@lastname"/> >> <xsl:value-of select="@email"/> >> </xsl:template> >> >> You'll of course need to make sure that your include has the >> attribute data="yes". >> >> Cheers, >> Alex >> >> On Apr 24, 2006, at 8:22 AM, Carl Barrow wrote: >> >>> Hi Alex, >>> >>> On one of the sites here in Hull I have a file for each member of >>> staff with the following dtd to define it: >>> >>> <!ELEMENT page (rightbox*,bodytext,leftbox?)> >>> <!ELEMENT rightbox (html)> >>> <!ELEMENT bodytext >>> (photo,qualifications,researchinterests,researchcategories,biography >>> ,modulestaught,memberships,publications)> >>> <!ELEMENT photo (html)> >>> <!ELEMENT qualifications (html)> >>> <!ELEMENT researchinterests (html)> >>> <!ELEMENT researchcategories (html)> >>> <!ELEMENT biography (html)> >>> <!ELEMENT modulestaught (html)> >>> <!ELEMENT memberships (html)> >>> <!ELEMENT publications (html)> >>> <!ELEMENT leftbox (html)> >>> <!ATTLIST rightbox title CDATA #REQUIRED> >>> <!ATTLIST leftbox title CDATA #REQUIRED> <!ATTLIST bodytext title >>> CDATA #REQUIRED> >>> <!ATTLIST bodytext firstname CDATA #REQUIRED> >>> <!ATTLIST bodytext lastname CDATA #REQUIRED> >>> <!ATTLIST bodytext academictitle CDATA #REQUIRED> >>> <!ATTLIST bodytext honorarytitle CDATA #REQUIRED> >>> <!ATTLIST bodytext extention CDATA #REQUIRED> >>> <!ATTLIST bodytext roomnumber CDATA #REQUIRED> >>> <!ATTLIST bodytext email CDATA #REQUIRED> >>> <!ATTLIST page navigationtitle CDATA #REQUIRED> >>> >>> I want to include the firstname, lastname and email for each >>> member of staff on an index page. At the moment I only seem to >>> be able to include everything on a staff page The code I have >>> is as follows: >>> >>> >>> <xsl:template name="bodytext"> >>> <xsl:for-each select="/cms:wrapper/cms:include[@pattern='/ >>> people/staff/*.xml']"> >>> <xsl:apply-templates /> >>> </xsl:for-each> >>> </xsl:template> >>> >>> I though I would be able to use: >>> <xsl:apply-templates select="/cms:wrapper/cms:source/page/ >>> bodytext/@firstname" /> >>> >>> but that isn't working. Can you see what I'm doing wrong at all? >>> >>> Cheers >>> Carl >>> >>> --************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> ******************************************************************** >>> ********************* >>> To view the terms under which this email is distributed, please >>> go to http://www.hull.ac.uk/legal/email_disclaimer.html >>> ******************************************************************** >>> ********************* >>> >>> >>> ------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make >>> your job easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > ******************* |