Re: [Hypercontent-users] xmlns:xmlns:cms problem ! and caching
Brought to you by:
alexvigdor
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 |