]> matita.cs.unibo.it Git - helm.git/commitdiff
* A new news
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 26 Feb 2002 16:36:26 +0000 (16:36 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 26 Feb 2002 16:36:26 +0000 (16:36 +0000)
* links now allowed inside news

helm/mowgli/home/xml/news.xml
helm/mowgli/home/xsl/news.xsl

index 1c0e6ee089d5722ad245b87dcd4f3bfbd4dda2aa..910f30b185c3fd3d58d31994a6e4a394d5060fe8 100644 (file)
@@ -5,14 +5,31 @@
  <!ELEMENT event (date,header?,description,who?)>
  <!ELEMENT date (#PCDATA)>
  <!ELEMENT header (#PCDATA)>
- <!ELEMENT description (#PCDATA)>
+ <!ELEMENT description (#PCDATA|a)*>
  <!ELEMENT who EMPTY>
  <!ATTLIST who
            file CDATA #REQUIRED>
+
+ <!-- Small subset of XHTML -->
+ <!ELEMENT a (#PCDATA)>
+ <!ATTLIST a
+           target CDATA #REQUIRED
+           href CDATA #REQUIRED>
 ]>
 
 <news>
 
+  <event>
+    <date>February 26, 2002</date>
+    <description>
+      The site is now available in two versions: with and without
+      frames. Please, try
+      <a href="http://mowgli.cs.unibo.it/html_no_frames" target="_top">the one
+      without frames</a> and give us some feedback.
+    </description>
+    <who file="bologna/sacerdoti"/>
+  </event>
+      
   <event>
     <date>February 22, 2002</date>
     <description>
index eaf4e54782cd7e22fece9251a0d689f1eda85360..2d513bec004c102d6aea89e98bf8ba0915dbbd59 100644 (file)
@@ -33,7 +33,7 @@
   </xsl:if>
  </dt>
  <dd>
-  <xsl:value-of select="description"/>
+  <xsl:copy-of select="description/*|description/text()"/>
   <xsl:if test="not($small) and who">
    <br/><br/>
    <div class="right">