Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Can anybody tell me whats wrong with this xslt

Can anybody tell me whats wrong with this xslt

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlwpfcomregex
2 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haim Nachum
    wrote on last edited by
    #1

    I have an xhtml file that is valid and im running a simple xslt sheey against him only to be able to catch the body element and it dosent work. The xml: <html xmlns="http://www.w3.org/1999/xhtml"> <body> <a name="top"></a> </body> </html> The xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" > <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates select="node()"/> </xsl:template> <xsl:template match="body"> here </xsl:template> </xsl:stylesheet>

    N 1 Reply Last reply
    0
    • H Haim Nachum

      I have an xhtml file that is valid and im running a simple xslt sheey against him only to be able to catch the body element and it dosent work. The xml: <html xmlns="http://www.w3.org/1999/xhtml"> <body> <a name="top"></a> </body> </html> The xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" > <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates select="node()"/> </xsl:template> <xsl:template match="body"> here </xsl:template> </xsl:stylesheet>

      N Offline
      N Offline
      Nagaraj Muthuchamy
      wrote on last edited by
      #2

      Change your xml as shown below. <html xmlns="http://www.w3.org/1999/xhtml"> --- > <html> This name space reference is creating issues. Thanks, Nagaraj

      SForSearch

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups