You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Gary L Peskin <ga...@firstech.com> on 2000/10/30 22:29:47 UTC

Revised diffs for xml:space

Here are the diffs for the xml:space fix against the Jindented code.  We
set a variable called m_defaultSpace but we don't ever seem to do
anything with it.  I guess we will later.

Also, I stripped the routines out of Stylesheet.java.  They're already
inherited from ElemTemplateElement and the routines have the same name
and do the same thing, I think.

If you'd like me to commit, please advise.

Gary


Index: ElemTemplateElement.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemTemplateElement.java,v
retrieving revision 1.17
diff -r1.17 ElemTemplateElement.java
593c593
<   public void setXmlSpace(boolean v)
---
>   public void setXmlSpace(int v)
595c595
<     m_defaultSpace = v;
---
>     m_defaultSpace = ((Constants.ATTRVAL_STRIP == v) ? true : false);


Index: Stylesheet.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/Stylesheet.java,v
retrieving revision 1.9
diff -r1.9 Stylesheet.java
455,482c455
<    * The "xml:space" property.
<    */
<   private boolean m_XmlSpace;
< 
<   /**
<    * Set the "xml:space" property.
<    * @see <a href="http://www.w3.org/TR/xslt#strip">strip in XSLT
Specification</a>
<    *
<    * NEEDSDOC @param v
<    */
<   public void setXmlSpace(boolean v)
<   {
<     m_XmlSpace = v;
<   }
< 
<   /**
<    * Get the "xml:space" property.
<    * @see <a href="http://www.w3.org/TR/xslt#strip">strip in XSLT
Specification</a>
<    *
<    * NEEDSDOC ($objectName$) @return
<    */
<   public boolean getXmlSpace()
<   {
<     return m_XmlSpace;
<   }
< 
<   /**
<    * The "xsl:import" list.
---
>    * The "xsl:import" list. 


Index: XSLTAttributeDef.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java,v
retrieving revision 1.8
diff -r1.8 XSLTAttributeDef.java
72a73
> import org.apache.xalan.templates.Constants;
391c392,397
< 
---
>         return m_setterString;
>       }
>       else if ( m_name.equals("space")
>               && m_namespace.equals(Constants.S_XMLNAMESPACEURI) )
>       {
>         m_setterString = "setXmlSpace";