Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 89558 invoked by uid 500); 13 Aug 2003 14:52:59 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Delivered-To: moderator for xalan-cvs@xml.apache.org Received: (qmail 68778 invoked from network); 13 Aug 2003 12:27:52 -0000 Date: 13 Aug 2003 12:27:54 -0000 Message-ID: <20030813122754.49750.qmail@minotaur.apache.org> From: aruny@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/java/src/org/apache/xalan/templates Stylesheet.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N aruny 2003/08/13 05:27:54 Modified: java/src/org/apache/xalan/templates Tag: jaxp-1_3_0-branch Stylesheet.java Log: Description : In forward-compatible mode, an unknown attribute should be ignored rather than throwing an exception. Revision Changes Path No revision No revision 1.27.4.1 +38 -8 xml-xalan/java/src/org/apache/xalan/templates/Stylesheet.java Index: Stylesheet.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/Stylesheet.java,v retrieving revision 1.27 retrieving revision 1.27.4.1 diff -u -r1.27 -r1.27.4.1 --- Stylesheet.java 30 Jan 2003 18:45:51 -0000 1.27 +++ Stylesheet.java 13 Aug 2003 12:27:54 -0000 1.27.4.1 @@ -2,7 +2,7 @@ * The Apache Software License, Version 1.1 * * - * Copyright (c) 1999-2003 The Apache Software Foundation. All rights + * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -56,20 +56,33 @@ */ package org.apache.xalan.templates; -import java.io.IOException; +// Java imports import java.io.ObjectInputStream; +import java.io.IOException; import java.io.ObjectOutputStream; + +import java.text.DecimalFormatSymbols; + import java.util.Hashtable; import java.util.Stack; import java.util.Vector; -import javax.xml.transform.SourceLocator; -import javax.xml.transform.TransformerException; - -import org.apache.xml.dtm.DTM; +// Xalan imports +import org.apache.xml.utils.SystemIDResolver; import org.apache.xml.utils.QName; import org.apache.xml.utils.StringVector; -import org.apache.xml.utils.SystemIDResolver; +import org.apache.xpath.XPath; + +// DOM Imports +//import org.w3c.dom.Node; +//import org.w3c.dom.Document; +import org.apache.xml.dtm.DTM; + +// SAX2 Imports +import javax.xml.transform.TransformerException; +import org.xml.sax.Locator; + +import javax.xml.transform.SourceLocator; /** * Represents a stylesheet element. @@ -435,7 +448,13 @@ * @serial */ private String m_Version; - + + /** + * Whether or not the stylesheet is in "Forward Compatibility Mode" + * @serial + */ + private boolean m_isCompatibleMode = false; + /** * Set the "version" property. * @see forwards in XSLT Specification @@ -445,6 +464,17 @@ public void setVersion(String v) { m_Version = v; + m_isCompatibleMode = (Double.valueOf(v).doubleValue() > Constants.XSLTVERSUPPORTED); + } + + /** + * Get whether or not the stylesheet is in "Forward Compatibility Mode" + * + * @return true if in forward compatible mode, false otherwise + */ + public boolean getCompatibleMode() + { + return m_isCompatibleMode; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org