Supress output

W

wshaklee

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
 
R

Richard Tobin

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top