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. No XML Header?

No XML Header?

Scheduled Pinned Locked Moved XML / XSL
xmlhelpquestionannouncement
3 Posts 2 Posters 0 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.
  • D Offline
    D Offline
    Dominik Reichl
    wrote on last edited by
    #1

    Hello! I'm trying to use an XSL stylesheet to transform an XML document into a CSV file. This works quite fine, except one problem: XSL outputs an XML header:

    <?xml version="1.0" encoding="utf-8"?>
    "Item 1","Sub-Item 1.1","SubItem 1.2"
    "Item 2","Sub-Item 2.1","SubItem 2.2"
    "Item 3","Sub-Item 3.1","SubItem 3.2"
    "Item 4","Sub-Item 4.1","SubItem 4.2"
    

    Is there any XSL command that prevents the output of the first line? Best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    S 1 Reply Last reply
    0
    • D Dominik Reichl

      Hello! I'm trying to use an XSL stylesheet to transform an XML document into a CSV file. This works quite fine, except one problem: XSL outputs an XML header:

      <?xml version="1.0" encoding="utf-8"?>
      "Item 1","Sub-Item 1.1","SubItem 1.2"
      "Item 2","Sub-Item 2.1","SubItem 2.2"
      "Item 3","Sub-Item 3.1","SubItem 3.2"
      "Item 4","Sub-Item 4.1","SubItem 4.2"
      

      Is there any XSL command that prevents the output of the first line? Best regards Dominik


      Too many passwords to remember? Try KeePass Password Safe!

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      XSLT xsl:output Element[^] You're looking for the omit-xml-declaration attribute.


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      D 1 Reply Last reply
      0
      • S Stefan Troschuetz

        XSLT xsl:output Element[^] You're looking for the omit-xml-declaration attribute.


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        D Offline
        D Offline
        Dominik Reichl
        wrote on last edited by
        #3

        Exactly what I was looking for, thanks a lot! :)


        Too many passwords to remember? Try KeePass Password Safe!

        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