xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] saxon:omit-meta-tag attribute being ignored


Subject: [xsl] saxon:omit-meta-tag attribute being ignored
From: "Ryan McFall" <mcfall@xxxxxxxx>
Date: Thu, 24 Jul 2003 12:42:48 -0400

Hi:

I am having difficulty getting the omit-meta-tag extension attribute
from the Saxon processor to be honored.

I am using the following version of Saxon:
Vendor: SAXON 7.6.5 from Michael Kay
Vendor URL: http://saxon.sf.net/

I have also tested with Saxon 6.5.2, with the same results.  In both
cases, the output contains a meta tag.

Here is my input document:
<html>
<head>
<title>Test</title>
</head>
Content
</html>

And my stylesheet:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:saxon="http://saxon.sf.net/"
                extension-element-prefixes="saxon"
                version="1.0"
                >

<xsl:output method="html" saxon:omit-meta-tag="yes"/>

<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>

I invoke the saxon processor as follows:
java -classpath ~/lib/saxon7.jar:${CLASSPATH} net.sf.saxon.Transform
test.xml simple.xsl 

The output is:
<html>   
   <head>
      <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">         
      <title>Test</title>      
   </head>
   Content   
</html>

Any help would be greatly appreciated!
Ryan

Ryan McFall 
Dept. of Computer Science
Hope College
Holland, MI  49423
email: mcfall@xxxxxxxx Phone: (616) 395-7952


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor