hypercontent-users Mailing List for HyperContent (Page 24)
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...> - 2005-10-05 14:26:52
|
Hi Alex Very interesting, I've tried it in NetNewsWire just now and it doesn't work, it might well be something to do with our proxy/cache setting here. At least I know it's working somewhere! Thanks for taking a look :) Cheers Carl Alex Vigdor wrote: > Hi Carl, > That RSS feed works for me (with NetNewsWire Lite). Perhaps some > readers don't support the 0.91 version? Or perhaps the DOCTYPE > declaration is confusing them? For the latter, you would have to run > it through an XSL to prevent the doctype from showing. > > -Alex > > On Oct 5, 2005, at 9:33 AM, Carl Barrow wrote: > >> Hi Alex >> >> I'm sure my questions seem never ending !! >> >> I have created a dtd that allows the user to create an xml file for >> an RSS feed. it outputs an xml file >> http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an >> rss feed but it doesn't actually work with any rss readers. Am I >> missing something? >> >> My DTD is as follows : >> <!ELEMENT rss (channel)> >> <!ATTLIST rss >> version CDATA #REQUIRED> >> <!ELEMENT channel (title | link | description | language | item+ | >> rating? | image? | textinput? | copyright? | pubDate? | >> lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | >> skipDays?)*> >> <!ELEMENT title (#PCDATA)> >> <!ELEMENT link (#PCDATA)> >> <!ELEMENT description (#PCDATA)> >> <!ELEMENT image (title | url | link | width? | height? | description?)*> >> <!ELEMENT url (#PCDATA)> >> <!ELEMENT item (title | description | link)*> >> <!ELEMENT textinput (title | description | name | link)*> >> <!ELEMENT name (#PCDATA)> >> <!ELEMENT rating (#PCDATA)> >> <!ELEMENT language (#PCDATA)> >> <!ELEMENT width (#PCDATA)> >> <!ELEMENT height (#PCDATA)> >> <!ELEMENT copyright (#PCDATA)> >> <!ELEMENT pubDate (#PCDATA)> >> <!ELEMENT lastBuildDate (#PCDATA)> >> <!ELEMENT docs (#PCDATA)> >> <!ELEMENT managingEditor (#PCDATA)> >> <!ELEMENT webMaster (#PCDATA)> >> <!ELEMENT hour (#PCDATA)> >> <!ELEMENT day (#PCDATA)> >> <!ELEMENT skipHours (hour+)> >> <!ELEMENT skipDays (day+)> >> >> >> and then in my site definition: >> >> <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" >> path="/rss/*" >> root="rss"> >> <output basedir="/" content-type="text/xml"/> >> </xml-doctype> >> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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 ************************************ |
From: Alex V. <av...@co...> - 2005-10-05 14:03:01
|
Hi Carl, That RSS feed works for me (with NetNewsWire Lite). Perhaps some readers don't support the 0.91 version? Or perhaps the DOCTYPE declaration is confusing them? For the latter, you would have to run it through an XSL to prevent the doctype from showing. -Alex On Oct 5, 2005, at 9:33 AM, Carl Barrow wrote: > Hi Alex > > I'm sure my questions seem never ending !! > > I have created a dtd that allows the user to create an xml file for an > RSS feed. it outputs an xml file > http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an rss > feed but it doesn't actually work with any rss readers. Am I missing > something? > > My DTD is as follows : > <!ELEMENT rss (channel)> > <!ATTLIST rss > version CDATA #REQUIRED> > <!ELEMENT channel (title | link | description | language | item+ | > rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? > | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*> > <!ELEMENT title (#PCDATA)> > <!ELEMENT link (#PCDATA)> > <!ELEMENT description (#PCDATA)> > <!ELEMENT image (title | url | link | width? | height? | > description?)*> > <!ELEMENT url (#PCDATA)> > <!ELEMENT item (title | description | link)*> > <!ELEMENT textinput (title | description | name | link)*> > <!ELEMENT name (#PCDATA)> > <!ELEMENT rating (#PCDATA)> > <!ELEMENT language (#PCDATA)> > <!ELEMENT width (#PCDATA)> > <!ELEMENT height (#PCDATA)> > <!ELEMENT copyright (#PCDATA)> > <!ELEMENT pubDate (#PCDATA)> > <!ELEMENT lastBuildDate (#PCDATA)> > <!ELEMENT docs (#PCDATA)> > <!ELEMENT managingEditor (#PCDATA)> > <!ELEMENT webMaster (#PCDATA)> > <!ELEMENT hour (#PCDATA)> > <!ELEMENT day (#PCDATA)> > <!ELEMENT skipHours (hour+)> > <!ELEMENT skipDays (day+)> > > > and then in my site definition: > > <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" > path="/rss/*" > root="rss"> > <output basedir="/" content-type="text/xml"/> > </xml-doctype> > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-05 13:33:32
|
Hi Alex I'm sure my questions seem never ending !! I have created a dtd that allows the user to create an xml file for an RSS feed. it outputs an xml file http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an rss feed but it doesn't actually work with any rss readers. Am I missing something? My DTD is as follows : <!ELEMENT rss (channel)> <!ATTLIST rss version CDATA #REQUIRED> <!ELEMENT channel (title | link | description | language | item+ | rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*> <!ELEMENT title (#PCDATA)> <!ELEMENT link (#PCDATA)> <!ELEMENT description (#PCDATA)> <!ELEMENT image (title | url | link | width? | height? | description?)*> <!ELEMENT url (#PCDATA)> <!ELEMENT item (title | description | link)*> <!ELEMENT textinput (title | description | name | link)*> <!ELEMENT name (#PCDATA)> <!ELEMENT rating (#PCDATA)> <!ELEMENT language (#PCDATA)> <!ELEMENT width (#PCDATA)> <!ELEMENT height (#PCDATA)> <!ELEMENT copyright (#PCDATA)> <!ELEMENT pubDate (#PCDATA)> <!ELEMENT lastBuildDate (#PCDATA)> <!ELEMENT docs (#PCDATA)> <!ELEMENT managingEditor (#PCDATA)> <!ELEMENT webMaster (#PCDATA)> <!ELEMENT hour (#PCDATA)> <!ELEMENT day (#PCDATA)> <!ELEMENT skipHours (hour+)> <!ELEMENT skipDays (day+)> and then in my site definition: <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" path="/rss/*" root="rss"> <output basedir="/" content-type="text/xml"/> </xml-doctype> -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-05 13:18:01
|
Hi Carl, I think you need to place the "exclude-result-prefixes" = attribute on=20 every stylesheet, not just your root stylesheet. Cheers, Alex On Oct 5, 2005, at 7:05 AM, Carl Barrow wrote: > Hi Masood/Alex > > I'm also getting xmlns:xmlns:cms =3D=20 > "http://www.ais.columbia.edu/sws/xmlns/cucms#" in <image> <br> and <a>=20= > tags. I have the attribute exclude-result-prefixes=3D"xsl cms cfs rdf = dc=20 > vcard" in my root level stylesheet but the editor still seems to but=20= > it in. > Did anyone get the bottom of the problem? > > Thanks > Carl > > Alex Vigdor wrote: > >> HI Masood, >> Try adding this attribute to your root level xsl:stylesheet >> >> exclude-result-prefixes=3D"xsl cms cfs rdf dc vcard" >> >> This removes all those prefixes from the output XML. >> >> The caching problem is between the web server and the browser; HC2.0=20= >> addresses this by using its own built-in web server that forces the=20= >> client to revalidate content with every request. Since HC1.4 relies=20= >> on an external web server, you can either >> >> 1) configure that server to force revalidation; e.g. Apache with=20 >> mod_headers >> >> Header set Cache-Control: "must-revalidate" >> >> 2) set the browser to "check every time" if content is fresh >> >> >> -Alex >> >> On Sep 17, 2005, at 3:22 AM, Masood Moshref wrote: >> >>> Hi >>> I have a problem with namespaces that added automaticly to root=20 >>> element by hypercontent >>> i attached input xml ,xsl and output. >>> the output is good in any program but when I use it on Hypercontent=20= >>> the expression "xmlns:xmlns:cms" is added to root element >>> another problem is when users change this xml file, output do not=20 >>> changes until users delete their temporary internet files and press=20= >>> F5. I use Hypercontent 1.4 on uPortal. >>> >>> Please help me >>> Tanks a lot >>> >>> Yahoo! for Good >>> Click here to donate to the Hurricane Katrina relief effort.WARNING:=20= >>> This message has been altered by a mail filter on >>> Columbia University's mail server, columbia.edu. >>> >>> For information on our filtering policy, please see >>> http://www.columbia.edu/acis/email/filters/ >>> >>> An attachment named media.xsl >>> was removed from this message as a possible security hazard. >>> >>> <?xml version=3D"1.0" encoding=3D"UTF-8"?> >>> <cms:wrapper=20 >>> xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#"><cms:source= =20 >>> directory=3D"/subprject/SCO/sco2/"=20 >>> path=3D"/subprject/SCO/sco2/media.xml" filename=3D"media.xml"=20 >>> pattern=3D"/*/SCO/*/media.xml" basename=3D"media"=20 >>> type=3D"text/xml"><Media><Sounds><Sound=20 >>> Address=3D"/subprject/SCO/sco2/resource/test.mp3"=20 >>> Code=3D"21"/></Sounds></Media><rdf:RDF >>> xmlns:j.0=3D"http://www.ais.columbia.edu/sws/xmlns/cufs#" >>> xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" >>> xmlns:j.1=3D"http://purl.org/dc/elements/1.0/" >>> xmlns:j.2=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#"> >>> <j.0:File rdf:about=3D"/subprject/SCO/sco2/media.xml"> >>> <j.1:creator>Unrecognized person: admin</j.1:creator> >>> <j.2:comment></j.2:comment> >>> <j.2:editor>admin</j.2:editor> >>> <j.1:type>http://purl.org/dc/dcmitype/Text</j.1:type> >>> <j.1:format>text/xml</j.1:format> >>> <j.1:date>2005-09-08</j.1:date> >>> <j.1:identifier>/subprject/SCO/sco2/media.xml</j.1:identifier> >>> </j.0:File> >>> </rdf:RDF> >>> </cms:source><cms:include directory=3D"/" path=3D"/root.xml"=20 >>> filename=3D"root.xml" pattern=3D"/root.xml" basename=3D"root"=20 >>> type=3D"text/xml"><Root Navigation=3D"Enable" = Scorm=3D"Disable"><Images=20 >>> Down=3D"footer.jpg" RightImage=3D"right.jpg"=20 >>> TopCenterImage=3D"topcenter.jpg" TopLeftImage=3D"topleft.jpg"=20 >>> TopNav=3D"topnav.jpg" TopRightImage=3D"topright.jpg"/><Texts=20 >>> Advertisement=3D"=AF=A2=F2=F8=F4=BD=DB=D4" CopyRight=3D"=F4 >>> =AF=B1=F2=A9=AF=D3 IT =AF=AB=AF=B1=DB=D4=F4=AA" Designer=3D"=AF=AB=AF=B1= =F2=A9=AF=BB =AF=D2=DB=D4=F4 >>> =DB=D4=F4=BA =F4=BA=F2=F8=AF=A4=AF=B1 =AF=AB=AF=B1=DB=D4=F4=AA" = Glossary=3D"=F4=C3=AF=A4=F2=F9=F4=BD =F4=BA=AF=A4=F4 >>> =F4=BD" ImportantTexts=3D"=F4=BA=F2=A9=AF=A4=AF=BB =F4 >>> =F4=BD=F4 >>> :" KeyWords=3D"=F2=A9=F4=B3=F4 >>> =AF=A4=AF=BB =F2=A9=F4=B3=DB=D4=AF=F8=DB=D4" Navigation=3D"=F4=B2=DB=D4= =F4 >>> =AF=A4=DB=D4=AF=AB" SelectedImage=3D"=AF=BB=AF=B5=F4=C3=AF=B1 =F4 >>> =F4=BA=AF=BB=AF=A8=AF=AC" SubjectList=3D"=F4=AA=F4=BD=AF=B1=AF=D2=AF=BB= =F4 >>> =F4=C3=AF=A6=F4=C3=AF=D5=DB=D4" TOC=3D"=F4=AA=F4=BD=AF=B1=AF=D2=AF=BB"= =20 >>> Top=3D"=AF=AC=AF=A4=F4=B3=AF=A4"/></Root></cms:include></cms:wrapper><= ?xml=20 >>> version=3D"1.0" encoding=3D"UTF-8"?> >>> <Media xmlns:xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/=20 >>> cucms#"><Sounds><Sound stream=3D"0"=20 >>> Address=3D"../../../subprject/resource/test.mp3" Code=3D"1" = Fade=3D"None"=20 >>> Minutes=3D"" Seconds=3D""/><Sound=20 >>> xmlns:vcard=3D"http://www.ais.columbia.edu/sws/xmlns/vcard3.0#"=20 >>> xmlns:dc=3D"http://purl.org/dc/elements/1.0/"=20 >>> xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#"=20 >>> xmlns:cfs=3D"http://www.ais.columbia.edu/sws/xmlns/cufs#"=20 >>> xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#"=20 >>> Address=3D"http://sarzamin.org/sarzaminmusic/persian/128KB/Saman/=20 >>> 02_%20Did%20Goftam.mp3" stream=3D"1" Code=3D"2" Minutes=3D"4"=20 >>> Seconds=3D"38"/></Sounds><Images><ImageShow Code=3D"1"><Image=20 >>> Address=3D"../../../subprject/resource/image1.jpg"=20 >>> SmallImage=3D"../../../subprject/resource/image1small.jpg"=20 >>> Title=3D"=AF=A4=F4=C3=F4=B3=DB=D4=F4=BA =AF=BB=AF=B5=F4=C3=DB=D4=AF=B1= =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image = Address=3D"../../../subprject/resource/image2.jpg"=20 >>> SmallImage=3D"../../../subprject/resource/image2small.jpg"=20 >>> Title=3D"=AF=F8=F4=C3=F4 >>> =DB=D4=F4=BA =AF=BB=AF=B5=F4=C3=DB=D4=AF=B1 =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image Address=3D"../../../subprjec >>> t/resource/image3.jpg" SmallImage=3D"" Title=3D"=AF=D2=F4=C3=F4 >>> =DB=D4=F4=BA =AF=BB=AF=B5=F4=C3=DB=D4=AF=B1 =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image = Address=3D"../../../subprject/resource/image1.jpg"=20 >>> SmallImage=3D"../../../subprject/resource/image1small.jpg"=20 >>> Title=3D"=F2=BA=F4=BD=AF=A4=AF=B1=F4 >>> =DB=D4=F4=BA =AF=BB=AF=B5=F4=C3=DB=D4=AF=B1 =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image = Address=3D"../../../subprject/resource/image2.jpg"=20 >>> SmallImage=3D"../../../subprject/resource/image2small.jpg"=20 >>> Title=3D"=AF=A4=F4=C3=F4=B3=DB=D4=F4=BA =AF=BB=AF=B5=F4=C3=DB=D4=AF=B1= =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image = Address=3D"../../../subprject/resource/image3.jpg"=20 >>> SmallImage=3D"" Title=3D"=AF=A4=F4=C3=F4=B3=DB=D4=F4=BA =AF=BB=AF=B5=F4= =C3=DB=D4=AF=B1 =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/><Image = Address=3D"../../../subprject/resource/image1.jpg"=20 >>> SmallImage=3D"" Title=3D"=AF=A4=F4=C3=F4=B3=DB=D4=F4=BA =AF=BB=AF=B5=F4= =C3=DB=D4=AF=B1 =AF=A4=F4 >>> =AF=BB=AF=D0=AF=A4=F4=BA=DB=D4"/></ImageShow></Images></Media> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server.=20= >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> 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 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads,=20 > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-05 11:06:11
|
Hi Masood/Alex I'm also getting xmlns:xmlns:cms = "http://www.ais.columbia.edu/sws/xmlns/cucms#" in <image> <br> and <a> tags. I have the attribute exclude-result-prefixes="xsl cms cfs rdf dc vcard" in my root level stylesheet but the editor still seems to but it in. Did anyone get the bottom of the problem? Thanks Carl Alex Vigdor wrote: > HI Masood, > Try adding this attribute to your root level xsl:stylesheet > > exclude-result-prefixes="xsl cms cfs rdf dc vcard" > > This removes all those prefixes from the output XML. > > The caching problem is between the web server and the browser; HC2.0 > addresses this by using its own built-in web server that forces the > client to revalidate content with every request. Since HC1.4 relies on > an external web server, you can either > > 1) configure that server to force revalidation; e.g. Apache with > mod_headers > > Header set Cache-Control: "must-revalidate" > > 2) set the browser to "check every time" if content is fresh > > > -Alex > > On Sep 17, 2005, at 3:22 AM, Masood Moshref wrote: > >> Hi >> I have a problem with namespaces that added automaticly to root >> element by hypercontent >> i attached input xml ,xsl and output. >> the output is good in any program but when I use it on Hypercontent >> the expression "xmlns:xmlns:cms" is added to root element >> another problem is when users change this xml file, output do not >> changes until users delete their temporary internet files and press >> F5. I use Hypercontent 1.4 on uPortal. >> >> Please help me >> Tanks a lot >> >> Yahoo! for Good >> Click here to donate to the Hurricane Katrina relief effort.WARNING: >> This message has been altered by a mail filter on >> Columbia University's mail server, columbia.edu. >> >> For information on our filtering policy, please see >> http://www.columbia.edu/acis/email/filters/ >> >> An attachment named media.xsl >> was removed from this message as a possible security hazard. >> >> <?xml version="1.0" encoding="UTF-8"?> >> <cms:wrapper >> xmlns:cms="http://www.ais.columbia.edu/sws/xmlns/cucms#"><cms:source >> directory="/subprject/SCO/sco2/" path="/subprject/SCO/sco2/media.xml" >> filename="media.xml" pattern="/*/SCO/*/media.xml" basename="media" >> type="text/xml"><Media><Sounds><Sound >> Address="/subprject/SCO/sco2/resource/test.mp3" >> Code="21"/></Sounds></Media><rdf:RDF >> xmlns:j.0="http://www.ais.columbia.edu/sws/xmlns/cufs#" >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:j.1="http://purl.org/dc/elements/1.0/" >> xmlns:j.2="http://www.ais.columbia.edu/sws/xmlns/cucms#"> >> <j.0:File rdf:about="/subprject/SCO/sco2/media.xml"> >> <j.1:creator>Unrecognized person: admin</j.1:creator> >> <j.2:comment></j.2:comment> >> <j.2:editor>admin</j.2:editor> >> <j.1:type>http://purl.org/dc/dcmitype/Text</j.1:type> >> <j.1:format>text/xml</j.1:format> >> <j.1:date>2005-09-08</j.1:date> >> <j.1:identifier>/subprject/SCO/sco2/media.xml</j.1:identifier> >> </j.0:File> >> </rdf:RDF> >> </cms:source><cms:include directory="/" path="/root.xml" >> filename="root.xml" pattern="/root.xml" basename="root" >> type="text/xml"><Root Navigation="Enable" Scorm="Disable"><Images >> Down="footer.jpg" RightImage="right.jpg" >> TopCenterImage="topcenter.jpg" TopLeftImage="topleft.jpg" >> TopNav="topnav.jpg" TopRightImage="topright.jpg"/><Texts >> Advertisement="Ø¢Ú¯Ù‡ÛŒ" CopyRight="Ù >> رکز IT شریÙ" Designer="شرکت سی٠>> ین نگار شریÙ" Glossary="واژه نا٠>> Ù‡" ImportantTexts="نکات Ù >> Ù‡Ù >> :" KeyWords="Ú©Ù„Ù >> ات کلیدی" Navigation="پی٠>> ایش" SelectedImage="تصور Ù >> نتخب" SubjectList="Ùهرست Ù >> وضوعی" TOC="Ùهرست" >> Top="بالا"/></Root></cms:include></cms:wrapper><?xml >> version="1.0" encoding="UTF-8"?> >> <Media xmlns:xmlns:cms="http://www.ais.columbia.edu/sws/xmlns/ >> cucms#"><Sounds><Sound stream="0" >> Address="../../../subprject/resource/test.mp3" Code="1" Fade="None" >> Minutes="" Seconds=""/><Sound >> xmlns:vcard="http://www.ais.columbia.edu/sws/xmlns/vcard3.0#" >> xmlns:dc="http://purl.org/dc/elements/1.0/" >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> xmlns:cfs="http://www.ais.columbia.edu/sws/xmlns/cufs#" >> xmlns:cms="http://www.ais.columbia.edu/sws/xmlns/cucms#" >> Address="http://sarzamin.org/sarzaminmusic/persian/128KB/Saman/ >> 02_%20Did%20Goftam.mp3" stream="1" Code="2" Minutes="4" >> Seconds="38"/></Sounds><Images><ImageShow Code="1"><Image >> Address="../../../subprject/resource/image1.jpg" >> SmallImage="../../../subprject/resource/image1small.jpg" >> Title="اولین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprject/resource/image2.jpg" >> SmallImage="../../../subprject/resource/image2small.jpg" Title="دو٠>> ین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprjec >> t/resource/image3.jpg" SmallImage="" Title="سو٠>> ین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprject/resource/image1.jpg" >> SmallImage="../../../subprject/resource/image1small.jpg" >> Title="چهار٠>> ین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprject/resource/image2.jpg" >> SmallImage="../../../subprject/resource/image2small.jpg" >> Title="اولین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprject/resource/image3.jpg" >> SmallImage="" Title="اولین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/><Image Address="../../../subprject/resource/image1.jpg" >> SmallImage="" Title="اولین تصویر ا٠>> ØªØØ§Ù†ÛŒ"/></ImageShow></Images></Media> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > 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 ************************************ |
From: Alex V. <av...@co...> - 2005-10-04 14:33:30
|
Hi Carl, Looks like a typo in your project definition. In the declaration for the xml-doctype "/*/*/*/index.xml" you have <include data="yes" metadata="no" source="sitemap.xml" /> when you probably want <include data="yes" metadata="no" source="/sitemap.xml" /> Cheers, Alex On Oct 4, 2005, at 9:53 AM, Carl Barrow wrote: > Thanks very much Alex, > You will be able to the content at: > > http://www.hull.ac.uk/esig/hc/university-rep.zip > http://www.hull.ac.uk/esig/hc/university.xml.zip > > Cheers > Carl > > Alex Vigdor wrote: > >> Hi Carl, >> If you could zip up your repository and project definition >> somewhere I could get to them, I'll take a closer look. >> >> Cheers, >> Alex >> >> On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: >> >>> Hi All >>> >>> Can anyone see anything wrong with my sitemap.xml file or the xsl >>> that generates a breadcrumb trail. I have been trying for a while >>> to get it working but for some reason I still can't get a >>> breadcrumb to display for index.html pages at the following level >>> in the site : >>> /departments/academic_departments/applied_science_tech/index.html >>> >>> The strange thing is that it works fine for the rest of the site, >>> including: >>> /departments/academic_departments/applied_science_tech/filename.html >>> >>> The sitemap displays fine, you can see that at >>> https://port.hull.ac.uk/campus/sitemap.html >>> >>> Any help very much appreciated! >>> Cheers >>> Carl >>> >>> <xsl:variable name = "navigation" select = >>> "/cms:wrapper/child::*/navigation"/> >>> <xsl:variable name = "sourceItem" select = >>> "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/ >>> cms: source/@path]"/> >>> <xsl:variable name = "sourceLoc" select = >>> "/cms:wrapper/cms:source/@path"/> >>> <xsl:variable name = "sourceDirectory" select = >>> "/cms:wrapper/cms:source/@directory"/> >>> <xsl:variable name = "sourceBaseName" select = >>> "/cms:wrapper/cms:source/@basename"/> >>> >>> >>> SITMAP >>> <?xml version="1.0" encoding="UTF-8"?> >>> <!DOCTYPE nav-template SYSTEM >>> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >>> <nav-template customLabel="Home" labelWith="custom" >>> pattern="/index.xml" sortChildren="by-label"> >>> <nav-template pattern="/*/index.xml"> >>> <nav-template pattern="/*/*/index.xml"> >>> <nav-template pattern="/*/*/*" /> >>> >>> <nav-template pattern="/*/*/*/index.xml"> >>> <nav-template pattern="/*/*/*/*" /> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> >>> BREADCRUMB >>> <xsl:template name = "breadcrumb"> >>> <xsl:param name = "item" select = >>> "$navigation/nav-item[descendant-or-self::nav- >>> item[@location=$sourceLoc]]"/> >>> >>> <xsl:if test = "$item"> >>> <xsl:call-template name = "navigation-link-breadtest"> >>> <xsl:with-param name = "item" select = "$item"/> >>> </xsl:call-template> >>> >>> <xsl:if test = "not($item/@location=$sourceLoc)"> >>> <xsl:text> >>> > >>> </xsl:text> >>> >>> <xsl:call-template name = "breadcrumb"> >>> <xsl:with-param name = "item" >>> select = >>> "$item/nav-item[descendant-or-self::nav- >>> item[@location=$sourceLoc]]"/> >>> </xsl:call-template> >>> </xsl:if> >>> </xsl:if> >>> </xsl:template> >>> >>> <xsl:template name = "navigation-link-breadtest"> >>> <xsl:param name = "item" select = "."/> >>> >>> <a class = "topmanu"><xsl:attribute name = "href"> >>> <xsl:value-of select = >>> "concat($baseurl,$item/@base,'.html')"/> >>> </xsl:attribute> >>> >>> <xsl:value-of select = "$item/@label"/> </a> >>> </xsl:template> >>> >>> -- >>> ************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> 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 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-04 13:54:10
|
Thanks very much Alex, You will be able to the content at: http://www.hull.ac.uk/esig/hc/university-rep.zip http://www.hull.ac.uk/esig/hc/university.xml.zip Cheers Carl Alex Vigdor wrote: > Hi Carl, > If you could zip up your repository and project definition > somewhere I could get to them, I'll take a closer look. > > Cheers, > Alex > > On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: > >> Hi All >> >> Can anyone see anything wrong with my sitemap.xml file or the xsl >> that generates a breadcrumb trail. I have been trying for a while >> to get it working but for some reason I still can't get a breadcrumb >> to display for index.html pages at the following level in the site : >> /departments/academic_departments/applied_science_tech/index.html >> >> The strange thing is that it works fine for the rest of the site, >> including: >> /departments/academic_departments/applied_science_tech/filename.html >> >> The sitemap displays fine, you can see that at >> https://port.hull.ac.uk/campus/sitemap.html >> >> Any help very much appreciated! >> Cheers >> Carl >> >> <xsl:variable name = "navigation" select = >> "/cms:wrapper/child::*/navigation"/> >> <xsl:variable name = "sourceItem" select = >> "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: >> source/@path]"/> >> <xsl:variable name = "sourceLoc" select = >> "/cms:wrapper/cms:source/@path"/> >> <xsl:variable name = "sourceDirectory" select = >> "/cms:wrapper/cms:source/@directory"/> >> <xsl:variable name = "sourceBaseName" select = >> "/cms:wrapper/cms:source/@basename"/> >> >> >> SITMAP >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE nav-template SYSTEM >> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >> <nav-template customLabel="Home" labelWith="custom" >> pattern="/index.xml" sortChildren="by-label"> >> <nav-template pattern="/*/index.xml"> >> <nav-template pattern="/*/*/index.xml"> >> <nav-template pattern="/*/*/*" /> >> >> <nav-template pattern="/*/*/*/index.xml"> >> <nav-template pattern="/*/*/*/*" /> >> </nav-template> >> </nav-template> >> </nav-template> >> </nav-template> >> >> BREADCRUMB >> <xsl:template name = "breadcrumb"> >> <xsl:param name = "item" select = >> "$navigation/nav-item[descendant-or-self::nav- >> item[@location=$sourceLoc]]"/> >> >> <xsl:if test = "$item"> >> <xsl:call-template name = "navigation-link-breadtest"> >> <xsl:with-param name = "item" select = "$item"/> >> </xsl:call-template> >> >> <xsl:if test = "not($item/@location=$sourceLoc)"> >> <xsl:text> >> > >> </xsl:text> >> >> <xsl:call-template name = "breadcrumb"> >> <xsl:with-param name = "item" >> select = >> "$item/nav-item[descendant-or-self::nav-item[@location=$sourceLoc]]"/> >> </xsl:call-template> >> </xsl:if> >> </xsl:if> >> </xsl:template> >> >> <xsl:template name = "navigation-link-breadtest"> >> <xsl:param name = "item" select = "."/> >> >> <a class = "topmanu"><xsl:attribute name = "href"> >> <xsl:value-of select = >> "concat($baseurl,$item/@base,'.html')"/> >> </xsl:attribute> >> >> <xsl:value-of select = "$item/@label"/> </a> >> </xsl:template> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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 ************************************ |
From: Alex V. <av...@co...> - 2005-10-04 13:25:18
|
Hi Carl, If you could zip up your repository and project definition somewhere I could get to them, I'll take a closer look. Cheers, Alex On Oct 4, 2005, at 5:23 AM, Carl Barrow wrote: > Hi All > > Can anyone see anything wrong with my sitemap.xml file or the xsl that > generates a breadcrumb trail. I have been trying for a while to get > it working but for some reason I still can't get a breadcrumb to > display for index.html pages at the following level in the site : > /departments/academic_departments/applied_science_tech/index.html > > The strange thing is that it works fine for the rest of the site, > including: > /departments/academic_departments/applied_science_tech/filename.html > > The sitemap displays fine, you can see that at > https://port.hull.ac.uk/campus/sitemap.html > > Any help very much appreciated! > Cheers > Carl > > <xsl:variable name = "navigation" select = > "/cms:wrapper/child::*/navigation"/> > <xsl:variable name = "sourceItem" select = > "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: > source/@path]"/> > <xsl:variable name = "sourceLoc" select = > "/cms:wrapper/cms:source/@path"/> > <xsl:variable name = "sourceDirectory" select = > "/cms:wrapper/cms:source/@directory"/> > <xsl:variable name = "sourceBaseName" select = > "/cms:wrapper/cms:source/@basename"/> > > > SITMAP > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE nav-template SYSTEM > "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> > <nav-template customLabel="Home" labelWith="custom" > pattern="/index.xml" sortChildren="by-label"> > <nav-template pattern="/*/index.xml"> > <nav-template pattern="/*/*/index.xml"> > <nav-template pattern="/*/*/*" /> > > <nav-template pattern="/*/*/*/index.xml"> > <nav-template pattern="/*/*/*/*" /> > </nav-template> > </nav-template> > </nav-template> > </nav-template> > > BREADCRUMB > <xsl:template name = "breadcrumb"> > <xsl:param name = "item" select = > "$navigation/nav-item[descendant-or-self::nav- > item[@location=$sourceLoc]]"/> > > <xsl:if test = "$item"> > <xsl:call-template name = "navigation-link-breadtest"> > <xsl:with-param name = "item" select = "$item"/> > </xsl:call-template> > > <xsl:if test = "not($item/@location=$sourceLoc)"> > <xsl:text> > > > </xsl:text> > > <xsl:call-template name = "breadcrumb"> > <xsl:with-param name = "item" > select = > "$item/nav-item[descendant-or-self::nav-item[@location=$sourceLoc]]"/> > </xsl:call-template> > </xsl:if> > </xsl:if> > </xsl:template> > > <xsl:template name = "navigation-link-breadtest"> > <xsl:param name = "item" select = "."/> > > <a class = "topmanu"><xsl:attribute name = "href"> > <xsl:value-of select = > "concat($baseurl,$item/@base,'.html')"/> > </xsl:attribute> > > <xsl:value-of select = "$item/@label"/> </a> > </xsl:template> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-04 09:23:27
|
Hi All Can anyone see anything wrong with my sitemap.xml file or the xsl that generates a breadcrumb trail. I have been trying for a while to get it working but for some reason I still can't get a breadcrumb to display for index.html pages at the following level in the site : /departments/academic_departments/applied_science_tech/index.html The strange thing is that it works fine for the rest of the site, including: /departments/academic_departments/applied_science_tech/filename.html The sitemap displays fine, you can see that at https://port.hull.ac.uk/campus/sitemap.html Any help very much appreciated! Cheers Carl <xsl:variable name = "navigation" select = "/cms:wrapper/child::*/navigation"/> <xsl:variable name = "sourceItem" select = "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: source/@path]"/> <xsl:variable name = "sourceLoc" select = "/cms:wrapper/cms:source/@path"/> <xsl:variable name = "sourceDirectory" select = "/cms:wrapper/cms:source/@directory"/> <xsl:variable name = "sourceBaseName" select = "/cms:wrapper/cms:source/@basename"/> SITMAP <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE nav-template SYSTEM "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> <nav-template customLabel="Home" labelWith="custom" pattern="/index.xml" sortChildren="by-label"> <nav-template pattern="/*/index.xml"> <nav-template pattern="/*/*/index.xml"> <nav-template pattern="/*/*/*" /> <nav-template pattern="/*/*/*/index.xml"> <nav-template pattern="/*/*/*/*" /> </nav-template> </nav-template> </nav-template> </nav-template> BREADCRUMB <xsl:template name = "breadcrumb"> <xsl:param name = "item" select = "$navigation/nav-item[descendant-or-self::nav-item[@location=$sourceLoc]]"/> <xsl:if test = "$item"> <xsl:call-template name = "navigation-link-breadtest"> <xsl:with-param name = "item" select = "$item"/> </xsl:call-template> <xsl:if test = "not($item/@location=$sourceLoc)"> <xsl:text> > </xsl:text> <xsl:call-template name = "breadcrumb"> <xsl:with-param name = "item" select = "$item/nav-item[descendant-or-self::nav-item[@location=$sourceLoc]]"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:template> <xsl:template name = "navigation-link-breadtest"> <xsl:param name = "item" select = "."/> <a class = "topmanu"><xsl:attribute name = "href"> <xsl:value-of select = "concat($baseurl,$item/@base,'.html')"/> </xsl:attribute> <xsl:value-of select = "$item/@label"/> </a> </xsl:template> -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-09-29 16:04:25
|
Hi Carl, Can you verify that those pages actually show up in the site map? I didn't see an attachment come through earlier. You can always add an empty "output" element to your site-map xml-doc, and this will give you the resolved site map, which you could then pass along the URL for. Cheers, Alex On Sep 29, 2005, at 11:58 AM, Carl Barrow wrote: > Hi Alex > That makes no difference to my breadcrumb problem which is really > confusing me. > If you take a look at > https://port.hull.ac.uk/campus/departments/academic_departments/ > applied_science_tech/test.html > You will notice that the breadcrumb trail works fine, as it does in > most of the site. But at the following it just doesn't appear: > https://port.hull.ac.uk/campus/departments/academic_departments/ > applied_science_tech/index.html > https://port.hull.ac.uk/campus/departments/academic_departments/ > arts_social_science/index.html > https://port.hull.ac.uk/campus/departments/academic_departments/ > health_social_care/index.html > https://port.hull.ac.uk/campus/departments/academic_departments/ifl/ > index.html > > Any more ideas? > > Cheers > Carl > > > Alex Vigdor wrote: > >> Hi Carl, >> This reminds me of a problem that came up a while ago using the >> "//" axis. Try this, and let me know how it works >> >> <xsl:variable name = "sourceItem" select = >> "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: >> source/@path]"/> >> >> Cheers, >> Alex >> >> On Sep 29, 2005, at 9:46 AM, Carl Barrow wrote: >> >>> Hi Alex >>> >>> Well.... >>> I used >>> <xsl:when >>> test="starts-with($sourceDirectory,'/departments/ >>> academic_departments/ arts_social_science/')" > >>> Which does seem to do the trick :) >>> >>> However, my bread crumbtrail doesn't work there so any ideas, please >>> pass them on :) >>> >>> cheers >>> Carl >>> >>> Carl Barrow wrote: >>> >>>> Hi Alex >>>> >>>> It seems that $sourceItem/@location gets a value down to >>>> /departments/academic_departments but any lower it just doesn't get >>>> one. my site map is being created correctly but my breadcrumb >>>> trail doesn't work at this point ether. I guess I've missed >>>> something somewhere. >>>> >>>> Variables as bellow: >>>> <xsl:variable name = "navigation" select = >>>> "/cms:wrapper/child::*/navigation"/> >>>> <xsl:variable name = "sourceItem" select = >>>> "$navigation//nav-item[@location=/cms:wrapper/cms:source/@path]"/> >>>> <xsl:variable name = "sourceLoc" select = >>>> "/cms:wrapper/cms:source/@path"/> >>>> <xsl:variable name = "sourceDirectory" select = >>>> "/cms:wrapper/cms:source/@directory"/> >>>> <xsl:variable name = "sourceBaseName" select = >>>> "/cms:wrapper/cms:source/@basename"/> >>>> >>>> Attached is my sitemap.xml file >>>> >>>> If you can see anything obvious please let me know :) >>>> Cheers >>>> Carl >>>> >>>> Alex Vigdor wrote: >>>> >>>>> Hi Carl, >>>>> Offhand, I don't see any obvious problems. I would print out >>>>> >>>>> <xsl:value-of select="$sourceItem/@location"/:> >>>>> >>>>> just before or after that choose, for a debugging reality check - >>>>> make sure the value you're testing matches the tests. >>>>> >>>>> -Alex >>>>> >>>>> On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: >>>>> >>>>>> Hi >>>>>> >>>>>> I want to use a different graphic in my layout depending on where >>>>>> the page is in the site, I've tried the following but it always >>>>>> goes though to the <xsl:otherwise> statement. Can anyone tell >>>>>> me why? >>>>>> >>>>>> Many thanks >>>>>> Carl >>>>>> >>>>>> >>>>>> <xsl:choose> >>>>>> <xsl:when >>>>>> test="starts-with($sourceItem/@location,'/departments/ >>>>>> academic_departments/applied_science_tech/')"> >>>>>> <a href = "http://www.hull.ac.uk"> <img src = >>>>>> "http://www.acsweb.hull.ac.uk/media/ >>>>>> pt_icon_default_alt_scitech.jpg" >>>>>> width = "28" >>>>>> height = "28" >>>>>> border = "0" >>>>>> class = "body" >>>>>> alt = "University Home Page"/></a> >>>>>> </xsl:when> >>>>>> <xsl:when >>>>>> test="starts-with($sourceItem/@location,'/departments/ >>>>>> academic_departments/arts_social_science/')" > >>>>>> <a href = >>>>>> "http://www.hull.ac.uk"> <img src = >>>>>> "http://www.acsweb.hull.ac.uk/media/ >>>>>> pt_icon_default_alt_artsoc.jpg" >>>>>> width = "28" >>>>>> height = "28" >>>>>> border = "0" >>>>>> class = "body" >>>>>> alt = "University Home Page"/></a> >>>>>> </xsl:when> >>>>>> <xsl:otherwise> >>>>>> <a href = "http://www.hull.ac.uk"> <img src = >>>>>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" >>>>>> width = "28" >>>>>> height = "28" >>>>>> border = "0" >>>>>> class = "body" >>>>>> alt = "University Home Page"/></a> >>>>>> </xsl:otherwise> >>>>>> </xsl:choose> >>>>>> >>>>>> -- >>>>>> ************************************ >>>>>> >>>>>> Carl Barrow >>>>>> Systems Integrator >>>>>> e-Services >>>>>> The University of Hull >>>>>> Cottingham Road >>>>>> Hull >>>>>> HU6 7RX >>>>>> Ext. 6838 >>>>>> ************************************ >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by: >>>>>> Power Architecture Resource Center: Free content, downloads, >>>>>> discussions, >>>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by: >>>>> Power Architecture Resource Center: Free content, downloads, >>>>> discussions, >>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> >>>> >>>> >>>> -------------------------------------------------------------------- >>>> -- -- >>>> >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <!DOCTYPE nav-template SYSTEM >>>> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >>>> <nav-template customLabel="Home" labelWith="custom" >>>> pattern="/index.xml" sortChildren="by-label"> >>>> <nav-template pattern="/*/index.xml"> >>>> <nav-template pattern="/*/*/*" /> >>>> >>>> <nav-template pattern="/*/*/index.xml"> >>>> <nav-template pattern="/*/*/*/index.xml"> >>>> <nav-template pattern="/*/*/*/*" /> >>>> </nav-template> >>>> </nav-template> >>>> </nav-template> >>>> </nav-template> >>>> >>>> >>> >>> -- >>> ************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> 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 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-09-29 15:59:02
|
Hi Alex That makes no difference to my breadcrumb problem which is really confusing me. If you take a look at https://port.hull.ac.uk/campus/departments/academic_departments/applied_science_tech/test.html You will notice that the breadcrumb trail works fine, as it does in most of the site. But at the following it just doesn't appear: https://port.hull.ac.uk/campus/departments/academic_departments/applied_science_tech/index.html https://port.hull.ac.uk/campus/departments/academic_departments/arts_social_science/index.html https://port.hull.ac.uk/campus/departments/academic_departments/health_social_care/index.html https://port.hull.ac.uk/campus/departments/academic_departments/ifl/index.html Any more ideas? Cheers Carl Alex Vigdor wrote: > Hi Carl, > This reminds me of a problem that came up a while ago using the > "//" axis. Try this, and let me know how it works > > <xsl:variable name = "sourceItem" select = > "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: > source/@path]"/> > > Cheers, > Alex > > On Sep 29, 2005, at 9:46 AM, Carl Barrow wrote: > >> Hi Alex >> >> Well.... >> I used >> <xsl:when >> test="starts-with($sourceDirectory,'/departments/academic_departments/ >> arts_social_science/')" > >> Which does seem to do the trick :) >> >> However, my bread crumbtrail doesn't work there so any ideas, please >> pass them on :) >> >> cheers >> Carl >> >> Carl Barrow wrote: >> >>> Hi Alex >>> >>> It seems that $sourceItem/@location gets a value down to >>> /departments/academic_departments but any lower it just doesn't get >>> one. my site map is being created correctly but my breadcrumb >>> trail doesn't work at this point ether. I guess I've missed >>> something somewhere. >>> >>> Variables as bellow: >>> <xsl:variable name = "navigation" select = >>> "/cms:wrapper/child::*/navigation"/> >>> <xsl:variable name = "sourceItem" select = >>> "$navigation//nav-item[@location=/cms:wrapper/cms:source/@path]"/> >>> <xsl:variable name = "sourceLoc" select = >>> "/cms:wrapper/cms:source/@path"/> >>> <xsl:variable name = "sourceDirectory" select = >>> "/cms:wrapper/cms:source/@directory"/> >>> <xsl:variable name = "sourceBaseName" select = >>> "/cms:wrapper/cms:source/@basename"/> >>> >>> Attached is my sitemap.xml file >>> >>> If you can see anything obvious please let me know :) >>> Cheers >>> Carl >>> >>> Alex Vigdor wrote: >>> >>>> Hi Carl, >>>> Offhand, I don't see any obvious problems. I would print out >>>> >>>> <xsl:value-of select="$sourceItem/@location"/:> >>>> >>>> just before or after that choose, for a debugging reality check - >>>> make sure the value you're testing matches the tests. >>>> >>>> -Alex >>>> >>>> On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: >>>> >>>>> Hi >>>>> >>>>> I want to use a different graphic in my layout depending on where >>>>> the page is in the site, I've tried the following but it always >>>>> goes though to the <xsl:otherwise> statement. Can anyone tell >>>>> me why? >>>>> >>>>> Many thanks >>>>> Carl >>>>> >>>>> >>>>> <xsl:choose> >>>>> <xsl:when >>>>> test="starts-with($sourceItem/@location,'/departments/ >>>>> academic_departments/applied_science_tech/')"> >>>>> <a href = "http://www.hull.ac.uk"> <img src = >>>>> "http://www.acsweb.hull.ac.uk/media/ pt_icon_default_alt_scitech.jpg" >>>>> width = "28" >>>>> height = "28" >>>>> border = "0" >>>>> class = "body" >>>>> alt = "University Home Page"/></a> >>>>> </xsl:when> >>>>> <xsl:when >>>>> test="starts-with($sourceItem/@location,'/departments/ >>>>> academic_departments/arts_social_science/')" >>>>> > <a >>>>> href = "http://www.hull.ac.uk"> <img src = >>>>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" >>>>> width = "28" >>>>> height = "28" >>>>> border = "0" >>>>> class = "body" >>>>> alt = "University Home Page"/></a> >>>>> </xsl:when> >>>>> <xsl:otherwise> >>>>> <a href = "http://www.hull.ac.uk"> <img src = >>>>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" >>>>> width = "28" >>>>> height = "28" >>>>> border = "0" >>>>> class = "body" >>>>> alt = "University Home Page"/></a> >>>>> </xsl:otherwise> >>>>> </xsl:choose> >>>>> >>>>> -- >>>>> ************************************ >>>>> >>>>> Carl Barrow >>>>> Systems Integrator >>>>> e-Services >>>>> The University of Hull >>>>> Cottingham Road >>>>> Hull >>>>> HU6 7RX >>>>> Ext. 6838 >>>>> ************************************ >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by: >>>>> Power Architecture Resource Center: Free content, downloads, >>>>> discussions, >>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>>> _______________________________________________ >>>>> Hypercontent-users mailing list >>>>> Hyp...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: >>>> Power Architecture Resource Center: Free content, downloads, >>>> discussions, >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> >>> >>> >>> ---------------------------------------------------------------------- >>> -- >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> <!DOCTYPE nav-template SYSTEM >>> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >>> <nav-template customLabel="Home" labelWith="custom" >>> pattern="/index.xml" sortChildren="by-label"> >>> <nav-template pattern="/*/index.xml"> >>> <nav-template pattern="/*/*/*" /> >>> >>> <nav-template pattern="/*/*/index.xml"> >>> <nav-template pattern="/*/*/*/index.xml"> >>> <nav-template pattern="/*/*/*/*" /> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> </nav-template> >>> >>> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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 ************************************ |
From: Alex V. <av...@co...> - 2005-09-29 15:18:16
|
Hi Carl, This reminds me of a problem that came up a while ago using the "//" axis. Try this, and let me know how it works <xsl:variable name = "sourceItem" select = "$navigation/descendant-or-self::nav-item[@location=/cms:wrapper/cms: source/@path]"/> Cheers, Alex On Sep 29, 2005, at 9:46 AM, Carl Barrow wrote: > Hi Alex > > Well.... > I used > <xsl:when > test="starts-with($sourceDirectory,'/departments/academic_departments/ > arts_social_science/')" > > Which does seem to do the trick :) > > However, my bread crumbtrail doesn't work there so any ideas, please > pass them on :) > > cheers > Carl > > Carl Barrow wrote: > >> Hi Alex >> >> It seems that $sourceItem/@location gets a value down to >> /departments/academic_departments but any lower it just doesn't get >> one. my site map is being created correctly but my breadcrumb trail >> doesn't work at this point ether. I guess I've missed something >> somewhere. >> >> Variables as bellow: >> <xsl:variable name = "navigation" select = >> "/cms:wrapper/child::*/navigation"/> >> <xsl:variable name = "sourceItem" select = >> "$navigation//nav-item[@location=/cms:wrapper/cms:source/@path]"/> >> <xsl:variable name = "sourceLoc" select = >> "/cms:wrapper/cms:source/@path"/> >> <xsl:variable name = "sourceDirectory" select = >> "/cms:wrapper/cms:source/@directory"/> >> <xsl:variable name = "sourceBaseName" select = >> "/cms:wrapper/cms:source/@basename"/> >> >> Attached is my sitemap.xml file >> >> If you can see anything obvious please let me know :) >> Cheers >> Carl >> >> Alex Vigdor wrote: >> >>> Hi Carl, >>> Offhand, I don't see any obvious problems. I would print out >>> >>> <xsl:value-of select="$sourceItem/@location"/:> >>> >>> just before or after that choose, for a debugging reality check - >>> make sure the value you're testing matches the tests. >>> >>> -Alex >>> >>> On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: >>> >>>> Hi >>>> >>>> I want to use a different graphic in my layout depending on where >>>> the page is in the site, I've tried the following but it always >>>> goes though to the <xsl:otherwise> statement. Can anyone tell me >>>> why? >>>> >>>> Many thanks >>>> Carl >>>> >>>> >>>> <xsl:choose> >>>> <xsl:when >>>> test="starts-with($sourceItem/@location,'/departments/ >>>> academic_departments/applied_science_tech/')"> >>>> <a href = "http://www.hull.ac.uk"> <img src = >>>> "http://www.acsweb.hull.ac.uk/media/ >>>> pt_icon_default_alt_scitech.jpg" >>>> width = "28" >>>> height = "28" >>>> border = "0" >>>> class = "body" >>>> alt = "University Home Page"/></a> >>>> </xsl:when> >>>> <xsl:when >>>> test="starts-with($sourceItem/@location,'/departments/ >>>> academic_departments/arts_social_science/')" > >>>> <a href = >>>> "http://www.hull.ac.uk"> <img src = >>>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" >>>> width = "28" >>>> height = "28" >>>> border = "0" >>>> class = "body" >>>> alt = "University Home Page"/></a> >>>> </xsl:when> >>>> <xsl:otherwise> >>>> <a href = "http://www.hull.ac.uk"> <img src = >>>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" >>>> width = "28" >>>> height = "28" >>>> border = "0" >>>> class = "body" >>>> alt = "University Home Page"/></a> >>>> </xsl:otherwise> >>>> </xsl:choose> >>>> >>>> -- >>>> ************************************ >>>> >>>> Carl Barrow >>>> Systems Integrator >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: >>>> Power Architecture Resource Center: Free content, downloads, >>>> discussions, >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> ---------------------------------------------------------------------- >> -- >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE nav-template SYSTEM >> "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> >> <nav-template customLabel="Home" labelWith="custom" >> pattern="/index.xml" sortChildren="by-label"> >> <nav-template pattern="/*/index.xml"> >> <nav-template pattern="/*/*/*" /> >> >> <nav-template pattern="/*/*/index.xml"> >> <nav-template pattern="/*/*/*/index.xml"> >> <nav-template pattern="/*/*/*/*" /> >> </nav-template> >> </nav-template> >> </nav-template> >> </nav-template> >> >> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-09-29 13:47:12
|
Hi Alex Well.... I used <xsl:when test="starts-with($sourceDirectory,'/departments/academic_departments/arts_social_science/')" > Which does seem to do the trick :) However, my bread crumbtrail doesn't work there so any ideas, please pass them on :) cheers Carl Carl Barrow wrote: > Hi Alex > > It seems that $sourceItem/@location gets a value down to > /departments/academic_departments but any lower it just doesn't get > one. my site map is being created correctly but my breadcrumb trail > doesn't work at this point ether. I guess I've missed something > somewhere. > > Variables as bellow: > <xsl:variable name = "navigation" select = > "/cms:wrapper/child::*/navigation"/> > <xsl:variable name = "sourceItem" select = > "$navigation//nav-item[@location=/cms:wrapper/cms:source/@path]"/> > <xsl:variable name = "sourceLoc" select = > "/cms:wrapper/cms:source/@path"/> > <xsl:variable name = "sourceDirectory" select = > "/cms:wrapper/cms:source/@directory"/> > <xsl:variable name = "sourceBaseName" select = > "/cms:wrapper/cms:source/@basename"/> > > Attached is my sitemap.xml file > > If you can see anything obvious please let me know :) > Cheers > Carl > > Alex Vigdor wrote: > >> Hi Carl, >> Offhand, I don't see any obvious problems. I would print out >> >> <xsl:value-of select="$sourceItem/@location"/:> >> >> just before or after that choose, for a debugging reality check - >> make sure the value you're testing matches the tests. >> >> -Alex >> >> On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: >> >>> Hi >>> >>> I want to use a different graphic in my layout depending on where >>> the page is in the site, I've tried the following but it always >>> goes though to the <xsl:otherwise> statement. Can anyone tell me why? >>> >>> Many thanks >>> Carl >>> >>> >>> <xsl:choose> >>> <xsl:when >>> test="starts-with($sourceItem/@location,'/departments/ >>> academic_departments/applied_science_tech/')"> >>> <a href = "http://www.hull.ac.uk"> <img src = >>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_scitech.jpg" >>> width = "28" >>> height = "28" >>> border = "0" >>> class = "body" >>> alt = "University Home Page"/></a> >>> </xsl:when> >>> <xsl:when test="starts-with($sourceItem/@location,'/departments/ >>> academic_departments/arts_social_science/')" >>> > <a href >>> = "http://www.hull.ac.uk"> <img src = >>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" >>> width = "28" >>> height = "28" >>> border = "0" >>> class = "body" >>> alt = "University Home Page"/></a> >>> </xsl:when> >>> <xsl:otherwise> >>> <a href = "http://www.hull.ac.uk"> <img src = >>> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" >>> width = "28" >>> height = "28" >>> border = "0" >>> class = "body" >>> alt = "University Home Page"/></a> >>> </xsl:otherwise> >>> </xsl:choose> >>> >>> -- >>> ************************************ >>> >>> Carl Barrow >>> Systems Integrator >>> e-Services >>> The University of Hull >>> Cottingham Road >>> Hull >>> HU6 7RX >>> Ext. 6838 >>> ************************************ >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > >------------------------------------------------------------------------ > ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE nav-template SYSTEM "http://hypercontent.sourceforge.net/dtd/navigation.dtd"> ><nav-template customLabel="Home" labelWith="custom" pattern="/index.xml" sortChildren="by-label"> > <nav-template pattern="/*/index.xml"> > <nav-template pattern="/*/*/*" /> > > <nav-template pattern="/*/*/index.xml"> > <nav-template pattern="/*/*/*/index.xml"> > <nav-template pattern="/*/*/*/*" /> > </nav-template> > </nav-template> > </nav-template> ></nav-template> > > > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Carl B. <C.P...@hu...> - 2005-09-29 11:47:43
|
Hi Alex It seems that $sourceItem/@location gets a value down to /departments/academic_departments but any lower it just doesn't get one. my site map is being created correctly but my breadcrumb trail doesn't work at this point ether. I guess I've missed something somewhere. Variables as bellow: <xsl:variable name = "navigation" select = "/cms:wrapper/child::*/navigation"/> <xsl:variable name = "sourceItem" select = "$navigation//nav-item[@location=/cms:wrapper/cms:source/@path]"/> <xsl:variable name = "sourceLoc" select = "/cms:wrapper/cms:source/@path"/> <xsl:variable name = "sourceDirectory" select = "/cms:wrapper/cms:source/@directory"/> <xsl:variable name = "sourceBaseName" select = "/cms:wrapper/cms:source/@basename"/> Attached is my sitemap.xml file If you can see anything obvious please let me know :) Cheers Carl Alex Vigdor wrote: > Hi Carl, > Offhand, I don't see any obvious problems. I would print out > > <xsl:value-of select="$sourceItem/@location"/:> > > just before or after that choose, for a debugging reality check - > make sure the value you're testing matches the tests. > > -Alex > > On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: > >> Hi >> >> I want to use a different graphic in my layout depending on where >> the page is in the site, I've tried the following but it always >> goes though to the <xsl:otherwise> statement. Can anyone tell me why? >> >> Many thanks >> Carl >> >> >> <xsl:choose> >> <xsl:when >> test="starts-with($sourceItem/@location,'/departments/ >> academic_departments/applied_science_tech/')"> >> <a href = "http://www.hull.ac.uk"> <img src = >> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_scitech.jpg" >> width = "28" >> height = "28" >> border = "0" >> class = "body" >> alt = "University Home Page"/></a> >> </xsl:when> >> <xsl:when test="starts-with($sourceItem/@location,'/departments/ >> academic_departments/arts_social_science/')" >> > <a href = >> "http://www.hull.ac.uk"> <img src = >> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" >> width = "28" >> height = "28" >> border = "0" >> class = "body" >> alt = "University Home Page"/></a> >> </xsl:when> >> <xsl:otherwise> >> <a href = "http://www.hull.ac.uk"> <img src = >> "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" >> width = "28" >> height = "28" >> border = "0" >> class = "body" >> alt = "University Home Page"/></a> >> </xsl:otherwise> >> </xsl:choose> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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 ************************************ |
From: Alex V. <av...@co...> - 2005-09-28 14:59:13
|
Hi Carl, Offhand, I don't see any obvious problems. I would print out <xsl:value-of select="$sourceItem/@location"/:> just before or after that choose, for a debugging reality check - make sure the value you're testing matches the tests. -Alex On Sep 28, 2005, at 10:41 AM, Carl Barrow wrote: > Hi > > I want to use a different graphic in my layout depending on where the > page is in the site, I've tried the following but it always goes > though to the <xsl:otherwise> statement. Can anyone tell me why? > > Many thanks > Carl > > > <xsl:choose> > <xsl:when > test="starts-with($sourceItem/@location,'/departments/ > academic_departments/applied_science_tech/')"> > <a href = "http://www.hull.ac.uk"> <img src = > "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_scitech.jpg" > width = "28" > height = "28" > border = "0" > class = "body" > alt = "University Home Page"/></a> > </xsl:when> > <xsl:when > test="starts-with($sourceItem/@location,'/departments/ > academic_departments/arts_social_science/')" > > <a href = "http://www.hull.ac.uk"> > <img src = > "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" > width = "28" > height = "28" > border = "0" > class = "body" > alt = "University Home Page"/></a> > </xsl:when> > <xsl:otherwise> > <a href = "http://www.hull.ac.uk"> <img src = > "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" > width = "28" > height = "28" > border = "0" > class = "body" > alt = "University Home Page"/></a> > </xsl:otherwise> > </xsl:choose> > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-09-28 14:41:39
|
Hi I want to use a different graphic in my layout depending on where the page is in the site, I've tried the following but it always goes though to the <xsl:otherwise> statement. Can anyone tell me why? Many thanks Carl <xsl:choose> <xsl:when test="starts-with($sourceItem/@location,'/departments/academic_departments/applied_science_tech/')"> <a href = "http://www.hull.ac.uk"> <img src = "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_scitech.jpg" width = "28" height = "28" border = "0" class = "body" alt = "University Home Page"/></a> </xsl:when> <xsl:when test="starts-with($sourceItem/@location,'/departments/academic_departments/arts_social_science/')" > <a href = "http://www.hull.ac.uk"> <img src = "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt_artsoc.jpg" width = "28" height = "28" border = "0" class = "body" alt = "University Home Page"/></a> </xsl:when> <xsl:otherwise> <a href = "http://www.hull.ac.uk"> <img src = "http://www.acsweb.hull.ac.uk/media/pt_icon_default_alt.gif" width = "28" height = "28" border = "0" class = "body" alt = "University Home Page"/></a> </xsl:otherwise> </xsl:choose> -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-09-22 14:00:20
|
Hi Juris, A google search on "ldaploginmodule" shows there are quite a few implementations out there. These will allow you to perform authentication in HC2, but won't address single sign-on. To accomplish that, I would encourage you to consider authenticating both uPortal and HC2 to CAS (which can in turn use LDAP), because this will keep your users from having to authenticate twice. Good luck! Alex On Sep 21, 2005, at 10:42 AM, sd...@la... wrote: > Hello, Alex! > I use LDAP for logon. So I see that It's not possible to use proxy > channel alone > to authentificate to Hyper Content 2.0. As I see proxy channel > parameters can > supply only UID not the password. When read the post "HyperContent > 2.0b4 now > available" it seemed that using proxy channel gives an apportunity to > perform > authentication with means of proxy channel configuration. So I am > going to add > LDAP logon directly to Hyper Content2.0. > Thank you very much for advice! > Juris Treibahs > University of Latvia > > > Citēju Alex Vigdor <av...@co...>: > > -> Hi Juris, > -> Since HC2 is now a separate application from uPortal, it requires > you > -> to login as well. HC2 uses the JAAS authentication architecture to > -> support logins; the default implementation uses a username and > MD5-hash > -> password stored in an XML file. The link I sent before provides a > JAAS > -> LoginModule that uses CAS for login. You could write a custom > -> LoginModule that would login to HyperContent by evaluating the "uid" > -> parameter of the request, but I must caution that this is highly > -> insecure; it would allow anyone to login to HC2 pretending to be > -> someone else by simply passing their UID directly to HC2. > -> > -> The LocalConnectionContext is a uPortal API that lets you plug in > -> secure single-sign-on methods like CAS. > -> > -> Are you using CAS? If not, what are you using for logins? > -> > -> -Alex > -> > -> On Sep 21, 2005, at 9:32 AM, sd...@la... wrote: > -> > -> > Hello, Alex! > -> > Thanks for your answer! > -> > I am not clear what does it mean to use LocalConnectionContext to > pass > -> > authentication credentials to HyperContent. Will it be enough to > fill > -> > in the > -> > right values in the field "Default IPerson Attributes to Pass" of > the > -> > channel > -> > adding form of uPortal? I tried to fill in with value "uid" which > as > -> > far as I > -> > am concerned contains username but the channel did no succeed to > -> > perform an > -> > authorization. > -> > > -> > Best regards, > -> > Juris Treibahs > -> > University of Latvia > -> > > -> > > -> > > -> > > -> > > -> > > -> > ------------------------------------------------------- > -> > SF.Net email is sponsored by: > -> > Tame your development challenges with Apache's Geronimo App > Server. > -> > Download > -> > it for free - -and be entered to win a 42" plasma tv or your very > own > -> > Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > -> > _______________________________________________ > -> > Hypercontent-users mailing list > -> > Hyp...@li... > -> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > -> > > -> > -> > -> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: <sd...@la...> - 2005-09-21 15:52:57
|
Hello, Alex! I use LDAP for logon. So I see that It's not possible to use proxy channe= l alone to authentificate to Hyper Content 2.0. As I see proxy channel parameters= can supply only UID not the password. When read the post "HyperContent 2.0b4 = now available" it seemed that using proxy channel gives an apportunity to pe= rform authentication with means of proxy channel configuration. So I am going t= o add LDAP logon directly to Hyper Content2.0. Thank you very much for advice! Juris Treibahs University of Latvia Cit=E7ju Alex Vigdor <av...@co...>: -> Hi Juris, -> Since HC2 is now a separate application from uPortal, it requires you= =20 -> to login as well. HC2 uses the JAAS authentication architecture to=20 -> support logins; the default implementation uses a username and MD5-has= h=20 -> password stored in an XML file. The link I sent before provides a JAA= S=20 -> LoginModule that uses CAS for login. You could write a custom=20 -> LoginModule that would login to HyperContent by evaluating the "uid"=20 -> parameter of the request, but I must caution that this is highly=20 -> insecure; it would allow anyone to login to HC2 pretending to be=20 -> someone else by simply passing their UID directly to HC2. ->=20 -> The LocalConnectionContext is a uPortal API that lets you plug in=20 -> secure single-sign-on methods like CAS. ->=20 -> Are you using CAS? If not, what are you using for logins? ->=20 -> -Alex ->=20 -> On Sep 21, 2005, at 9:32 AM, sd...@la... wrote: ->=20 -> > Hello, Alex! -> > Thanks for your answer! -> > I am not clear what does it mean to use LocalConnectionContext to pa= ss -> > authentication credentials to HyperContent. Will it be enough to fil= l=20 -> > in the -> > right values in the field "Default IPerson Attributes to Pass" of th= e=20 -> > channel -> > adding form of uPortal? I tried to fill in with value "uid" which as= =20 -> > far as I -> > am concerned contains username but the channel did no succeed to=20 -> > perform an -> > authorization. -> > -> > Best regards, -> > Juris Treibahs -> > University of Latvia -> > -> > -> > -> > -> > -> > -> > ------------------------------------------------------- -> > SF.Net email is sponsored by: -> > Tame your development challenges with Apache's Geronimo App Server.=20 -> > Download -> > it for free - -and be entered to win a 42" plasma tv or your very ow= n -> > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.ph= p -> > _______________________________________________ -> > Hypercontent-users mailing list -> > Hyp...@li... -> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -> > ->=20 ->=20 ->=20 |
From: Alex V. <av...@co...> - 2005-09-21 15:26:49
|
Hi Juris, Since HC2 is now a separate application from uPortal, it requires you to login as well. HC2 uses the JAAS authentication architecture to support logins; the default implementation uses a username and MD5-hash password stored in an XML file. The link I sent before provides a JAAS LoginModule that uses CAS for login. You could write a custom LoginModule that would login to HyperContent by evaluating the "uid" parameter of the request, but I must caution that this is highly insecure; it would allow anyone to login to HC2 pretending to be someone else by simply passing their UID directly to HC2. The LocalConnectionContext is a uPortal API that lets you plug in secure single-sign-on methods like CAS. Are you using CAS? If not, what are you using for logins? -Alex On Sep 21, 2005, at 9:32 AM, sd...@la... wrote: > Hello, Alex! > Thanks for your answer! > I am not clear what does it mean to use LocalConnectionContext to pass > authentication credentials to HyperContent. Will it be enough to fill > in the > right values in the field "Default IPerson Attributes to Pass" of the > channel > adding form of uPortal? I tried to fill in with value "uid" which as > far as I > am concerned contains username but the channel did no succeed to > perform an > authorization. > > Best regards, > Juris Treibahs > University of Latvia > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: <sd...@la...> - 2005-09-21 14:43:24
|
Hello, Alex! Thanks for your answer! I am not clear what does it mean to use LocalConnectionContext to pass authentication credentials to HyperContent. Will it be enough to fill in = the right values in the field "Default IPerson Attributes to Pass" of the cha= nnel adding form of uPortal? I tried to fill in with value "uid" which as far = as I am concerned contains username but the channel did no succeed to perform = an authorization. Best regards, Juris Treibahs University of Latvia |
From: Carl B. <C.P...@hu...> - 2005-09-21 13:49:52
|
Hi All I am currently giving 50 users access to 50 different files in all in one directory. Each user is only responsible for one file so I need to deny access for anyone apart from the user responsible to each of the 50 file. It's going to take forever! Can anyone think of a way of getting around it? Cheers Carl -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-09-21 12:07:52
|
Hi Juris, You'll need to use a uPortal LocalConnectionContext to pass authentication credentials to HyperContent for single-sign-on. If you're using CAS, you can use the CasConnectionContext in uPortal http://jasigch.princeton.edu:9000/display/CAS/CasConnectionContext You will also need the JAAS add-on to the CAS client for HyperContent http://jasigch.princeton.edu:9000/display/CAS/ CASLoginModule+for+JAAS+applications This gets compiled into the CAS client jar, and then is configured in jaas.properties, as is shown in the CASLoginModule documentation. -Alex On Sep 21, 2005, at 6:23 AM, sd...@la... wrote: > Hello, all! > I use uPortal 2.1.5. Already have set up web proxy channel with Hyper > Content2. > The application URI is set to HyperContent with mode parameter > darsboard-portlet: > http://localhost:8080/HC2/index.html?mode=dashboard-portlet > When I am logged on to the uPortal on the channel there I see the > login form - > "Please Login to access". > It seems to me that authorization is possible to be made by means of > web proxy > channel parameters - I have concluded it from the post "HyperContent > 2.0b4 now > available". Is my conclusion wright? Has anyone succeed in setting up > Hyper > Contetent that authorization is performed by the channel? > > Thanks in advance, > Juris Treibahs > University of Latvia > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: <sd...@la...> - 2005-09-21 11:33:40
|
Hello, all! I use uPortal 2.1.5. Already have set up web proxy channel with Hyper Con= tent2. The application URI is set to HyperContent with mode parameter darsboard-portlet: http://localhost:8080/HC2/index.html?mode=3Ddashboard-portlet When I am logged on to the uPortal on the channel there I see the login f= orm - "Please Login to access". It seems to me that authorization is possible to be made by means of web = proxy channel parameters - I have concluded it from the post "HyperContent 2.0b= 4 now available". Is my conclusion wright? Has anyone succeed in setting up Hyp= er Contetent that authorization is performed by the channel? Thanks in advance, Juris Treibahs University of Latvia=20 |
From: Alex V. <av...@co...> - 2005-09-17 13:59:51
|
HI Masood, Try adding this attribute to your root level xsl:stylesheet exclude-result-prefixes=3D"xsl cms cfs rdf dc vcard" This removes all those prefixes from the output XML. The caching problem is between the web server and the browser; HC2.0 =20 addresses this by using its own built-in web server that forces the =20 client to revalidate content with every request. Since HC1.4 relies on =20= an external web server, you can either 1) configure that server to force revalidation; e.g. Apache with =20 mod_headers Header set Cache-Control: "must-revalidate" 2) set the browser to "check every time" if content is fresh -Alex On Sep 17, 2005, at 3:22 AM, Masood Moshref wrote: > Hi > I have a problem with namespaces that added automaticly to root =20 > element by hypercontent > i attached input xml ,xsl and output. > =A0the output is good in any program but when I use it on Hypercontent = =20 > the expression "xmlns:xmlns:cms" is added to root element > another problem is when users change this xml file, output do not =20 > changes until users delete their temporary internet files and press =20= > F5. I use Hypercontent 1.4 on uPortal. > =A0 > Please help me > Tanks a lot > > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort.WARNING: =20= > This message has been altered by a mail filter on > Columbia University's mail server, columbia.edu. > > For information on our filtering policy, please see > http://www.columbia.edu/acis/email/filters/ > > An attachment named media.xsl > was removed from this message as a possible security hazard. > > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <cms:wrapper =20 > xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#"><cms:source = =20 > directory=3D"/subprject/SCO/sco2/" = path=3D"/subprject/SCO/sco2/media.xml" =20 > filename=3D"media.xml" pattern=3D"/*/SCO/*/media.xml" basename=3D"media"= =20 > type=3D"text/xml"><Media><Sounds><Sound =20 > Address=3D"/subprject/SCO/sco2/resource/test.mp3" =20 > Code=3D"21"/></Sounds></Media><rdf:RDF > xmlns:j.0=3D"http://www.ais.columbia.edu/sws/xmlns/cufs#" > xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:j.1=3D"http://purl.org/dc/elements/1.0/" > xmlns:j.2=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#"> > <j.0:File rdf:about=3D"/subprject/SCO/sco2/media.xml"> > <j.1:creator>Unrecognized person: admin</j.1:creator> > <j.2:comment></j.2:comment> > <j.2:editor>admin</j.2:editor> > <j.1:type>http://purl.org/dc/dcmitype/Text</j.1:type> > <j.1:format>text/xml</j.1:format> > <j.1:date>2005-09-08</j.1:date> > <j.1:identifier>/subprject/SCO/sco2/media.xml</j.1:identifier> > </j.0:File> > </rdf:RDF> > </cms:source><cms:include directory=3D"/" path=3D"/root.xml" =20 > filename=3D"root.xml" pattern=3D"/root.xml" basename=3D"root" =20 > type=3D"text/xml"><Root Navigation=3D"Enable" Scorm=3D"Disable"><Images = =20 > Down=3D"footer.jpg" RightImage=3D"right.jpg" =20 > TopCenterImage=3D"topcenter.jpg" TopLeftImage=3D"topleft.jpg" =20 > TopNav=3D"topnav.jpg" TopRightImage=3D"topright.jpg"/><Texts =20 > Advertisement=3D"=D8=A2=DA=AF=D9=87=DB=8C" CopyRight=3D"=D9 > =D8=B1=DA=A9=D8=B2 IT =D8=B4=D8=B1=DB=8C=D9=81" Designer=3D"=D8=B4=D8=B1= =DA=A9=D8=AA =D8=B3=DB=8C=D9 > =DB=8C=D9=86 =D9=86=DA=AF=D8=A7=D8=B1 =D8=B4=D8=B1=DB=8C=D9=81" = Glossary=3D"=D9=88=D8=A7=DA=98=D9=87 =D9=86=D8=A7=D9 > =D9=87" ImportantTexts=3D"=D9=86=DA=A9=D8=A7=D8=AA =D9 > =D9=87=D9 > :" KeyWords=3D"=DA=A9=D9=84=D9 > =D8=A7=D8=AA =DA=A9=D9=84=DB=8C=D8=AF=DB=8C" Navigation=3D"=D9=BE=DB=8C=D9= > =D8=A7=DB=8C=D8=B4" SelectedImage=3D"=D8=AA=D8=B5=D9=88=D8=B1 =D9 > =D9=86=D8=AA=D8=AE=D8=A8" SubjectList=3D"=D9=81=D9=87=D8=B1=D8=B3=D8=AA = =D9 > =D9=88=D8=B6=D9=88=D8=B9=DB=8C" TOC=3D"=D9=81=D9=87=D8=B1=D8=B3=D8=AA" = =20 > Top=3D"=D8=A8=D8=A7=D9=84=D8=A7"/></Root></cms:include></cms:wrapper><?x= ml version=3D"1.0" =20 > encoding=3D"UTF-8"?> > <Media =20 > xmlns:xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/=20 > cucms#"><Sounds><Sound stream=3D"0" =20 > Address=3D"../../../subprject/resource/test.mp3" Code=3D"1" = Fade=3D"None" =20 > Minutes=3D"" Seconds=3D""/><Sound =20 > xmlns:vcard=3D"http://www.ais.columbia.edu/sws/xmlns/vcard3.0#" =20 > xmlns:dc=3D"http://purl.org/dc/elements/1.0/" =20 > xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" =20 > xmlns:cfs=3D"http://www.ais.columbia.edu/sws/xmlns/cufs#" =20 > xmlns:cms=3D"http://www.ais.columbia.edu/sws/xmlns/cucms#" =20 > Address=3D"http://sarzamin.org/sarzaminmusic/persian/128KB/Saman/=20 > 02_%20Did%20Goftam.mp3" stream=3D"1" Code=3D"2" Minutes=3D"4" =20 > Seconds=3D"38"/></Sounds><Images><ImageShow Code=3D"1"><Image =20 > Address=3D"../../../subprject/resource/image1.jpg" =20 > SmallImage=3D"../../../subprject/resource/image1small.jpg" =20 > Title=3D"=D8=A7=D9=88=D9=84=DB=8C=D9=86 =D8=AA=D8=B5=D9=88=DB=8C=D8=B1 = =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image = Address=3D"../../../subprject/resource/image2.jpg" =20 > SmallImage=3D"../../../subprject/resource/image2small.jpg" = Title=3D"=D8=AF=D9=88=D9 > =DB=8C=D9=86 =D8=AA=D8=B5=D9=88=DB=8C=D8=B1 =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image Address=3D"../../../subprjec > t/resource/image3.jpg" SmallImage=3D"" Title=3D"=D8=B3=D9=88=D9 > =DB=8C=D9=86 =D8=AA=D8=B5=D9=88=DB=8C=D8=B1 =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image = Address=3D"../../../subprject/resource/image1.jpg" =20 > SmallImage=3D"../../../subprject/resource/image1small.jpg" =20 > Title=3D"=DA=86=D9=87=D8=A7=D8=B1=D9 > =DB=8C=D9=86 =D8=AA=D8=B5=D9=88=DB=8C=D8=B1 =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image = Address=3D"../../../subprject/resource/image2.jpg" =20 > SmallImage=3D"../../../subprject/resource/image2small.jpg" =20 > Title=3D"=D8=A7=D9=88=D9=84=DB=8C=D9=86 =D8=AA=D8=B5=D9=88=DB=8C=D8=B1 = =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image = Address=3D"../../../subprject/resource/image3.jpg" =20 > SmallImage=3D"" Title=3D"=D8=A7=D9=88=D9=84=DB=8C=D9=86 =D8=AA=D8=B5=D9=88= =DB=8C=D8=B1 =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/><Image = Address=3D"../../../subprject/resource/image1.jpg" =20 > SmallImage=3D"" Title=3D"=D8=A7=D9=88=D9=84=DB=8C=D9=86 =D8=AA=D8=B5=D9=88= =DB=8C=D8=B1 =D8=A7=D9 > =D8=AA=D8=AD=D8=A7=D9=86=DB=8C"/></ImageShow></Images></Media>= |
From: Alex V. <av...@co...> - 2005-09-13 16:10:25
|
Hi Carl, Welcome back, hope your new son is letting you and your wife get some sleep! Things at Columbia are fine, HC2 has been stabilizing nicely in production, and I do plan a release of some kind this week with all the latest improvements (including better support for batch processing of pictures). You should try the XSL function "starts-with" to check if the path starts with the relevant base directory, e.g. test="starts-with(@location,'/aboutus/')" Cheers, Alex On Sep 13, 2005, at 11:33 AM, Carl Barrow wrote: > Hi Alex > > Sorry I've not been on the list for a while after the birth of our > little boy I've been very busy. I hope all is going well at Columbia. > HyperContent is running very well here at Hull. (Still 1.4) > I have a quick question that you will probably be able to answer > quickly for me. I need to check where in the site structure a page > is and depending on it's location but in a different menu. ( I'm not > auto generating them for this site) . So I have seven top level > directories each of which will have a different menu which needs to be > reflected on all directories and files from that level down. I've > tried: > > > <xsl:when test="$sourceItem/@location = '/aboutus/*'"> > <xsl:call-template name = "statmenu"/> > </xsl:when> > > But that doesn't work. > > I can check for a specific file : > <xsl:when test="$sourceItem/@location = '/aboutus/index.html'"> > and that does work. > > do you have any idea how I might do it? I don't really want to use > seven different templates! > > Cheers > Carl > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |