[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] reolacing tags


Subject: [xsl] reolacing tags
From: "Amiceto Lopez" <aniceto@xxxxxxxxxxxxx>
Date: Fri, 19 Oct 2001 12:24:50 +0200

hi, the problem is:

wherever this is found <OTNSC-B></OTNSC-B>(in xml file)
    letters letters letters <OTNSC-B>text text</OTNSC-B> letters letters
replace it (in the html output) in the same position with <b></b>
    letters letters letters <b>text text</b> letters letters

Samples:

XML file:
<body>
 <news>
  <title>Titulo de la new comnes <OTNSC-B>tenebant</OTNSC-B> inde toro
pater.</title>
  <text>Texto de la new <OTNSC-B>Fracti bello</OTNSC-B> fatisque repulsi
ducto</text>
 </news>
 <news>
  <title>asd asdasd asdad <OTNSC-B>fghfg</OTNSC-B> fhfg eyeye df d
dfh</title>
  <text>ewferf erfer  erg<OTNSC-B>yuky aedths</OTNSC-B> dfgdf dfgdfg
dfgd</text>
 </news>
</body>

XSL file resume:
<html>
 <head>
  <title>NEWS</title>
 </head>
 <body>
 <xsl:for-each select="news">
  <p><xsl:value-of select="title"/></p>
  <p><xsl:value-of select="news"/></p>
 </xsl:for-each>
 </body>
</html>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords