This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

reolacing tags


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]