Supress output

Discussion in 'XML' started by wshaklee@comcast.net, Feb 14, 2006.

  1. Guest

    Does anyone know how to create a stylesheet that will suppress all
    output. I use to use

    <?xml version="1.0"?>
    <!--
    EmptyResult.xsl

    -->
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    </xsl:stylesheet>

    but now we have to conform to the new XSL standard I've tried

    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    </xsl:stylesheet>

    But that displays all the XML as text. I want to suppress everything
    and just display an empty page that I already have some HTML text on.

    Thanks
     
    , Feb 14, 2006
    #1
    1. Advertising

  2. In article <>,
    <> wrote:
    >but now we have to conform to the new XSL standard I've tried


    New? 1999 is new?

    >But that displays all the XML as text. I want to suppress everything
    >and just display an empty page that I already have some HTML text on.


    Put in an empty template for the root node:

    <xsl:template match="/"/>

    -- Richard
     
    Richard Tobin, Feb 14, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JG
    Replies:
    3
    Views:
    4,027
    Scott Allen
    Oct 21, 2004
  2. Edwin Knoppert

    Supress error/warning of winapi in class?

    Edwin Knoppert, Dec 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    956
    Edwin Knoppert
    Dec 13, 2005
  3. roderik

    psycopg supress output

    roderik, Nov 15, 2004, in forum: Python
    Replies:
    1
    Views:
    271
    Michael Fuhr
    Nov 16, 2004
  4. Thomas Guettler

    supress creation of .pyc files

    Thomas Guettler, Feb 16, 2005, in forum: Python
    Replies:
    3
    Views:
    324
    =?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?=
    Feb 16, 2005
  5. supress matching

    , Jan 9, 2007, in forum: XML
    Replies:
    6
    Views:
    492
Loading...

Share This Page