xml and <![CDATA[

  • Gasolene
  • Beginner
  • Beginner
  • Gasolene
  • Posts: 39

Post 3+ Months Ago

lets say i hav an xml doc like this...

Code: [ Select ]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<doc>
 <title>title</title>
 <body>

<![CDATA[ <a href="mailto:user@domain.com">my email</a> ]]>

 </body>
</doc>
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/xsl" href="style.xsl"?>
  3. <doc>
  4.  <title>title</title>
  5.  <body>
  6. <![CDATA[ <a href="mailto:user@domain.com">my email</a> ]]>
  7.  </body>
  8. </doc>

then transformed like this...

Code: [ Select ]
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/doc">

<html>
<head>
<title>
 <xsl:value-of select="title"/>
</title>
</head>
<body>
 <xsl:value-of select="body"/>
</body>
</html>

</xsl:template>
</xsl:stylesheet>
  1. <xsl:stylesheet version="1.0"
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="/doc">
  4. <html>
  5. <head>
  6. <title>
  7.  <xsl:value-of select="title"/>
  8. </title>
  9. </head>
  10. <body>
  11.  <xsl:value-of select="body"/>
  12. </body>
  13. </html>
  14. </xsl:template>
  15. </xsl:stylesheet>


msie shows a proper hyperlink, but netscape just shows the literal string

how do i have the hyperlink appear in NS 7
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 58 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.