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