Dodaj do ulubionych

XSLT i RSS

29.01.06, 11:52
WITAM,
w swojej pracy tłumaczę dokumenty RSS na HTML. Ściągam z adresu
infojama.pl/rss.php dokument RSS. Poza tagami RSS znajdują się w nim
tagi HTML zamienione na encje. Transformuję za pomocą xslt na dokument html( w
swoim xsl mam <xsl:output method="html"/> ). W dokumencie wynikowym encje html
dalej pozostają encjami html. Co zrobić aby w trakcie transformacji encje
zamieniły się na tagi? Przeglądarka zamienia encje na tagi ale ich nie
interpretuje tylko wyświetla jako zwykły tekst.

pozdrawiam

rypki
Obserwuj wątek
    • ktosktomafajnegomisiaczka Re: XSLT i RSS 01.02.06, 10:25
      wyciete z:
      www.xml.com/pub/a/2001/03/14/trxml10.html


      If the stylesheet document has the appropriate entity declaration, the XML
      parser that feeds the stylesheet and source document to the XSLT processor will
      replace this entity reference in the stylesheet with the replacement text
      declared for it. For this stylesheet, it will replace "ñ" with the
      Unicode value for the "ñ" character:

      <!
      • ktosktomafajnegomisiaczka Re: XSLT i RSS 01.02.06, 10:26
        zamiast <!ENTITY ntilde "ñ" ><!

Nie masz jeszcze konta? Zarejestruj się


Nakarm Pajacyka