You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jeff Winter <Jw...@zefer.com> on 2001/07/02 18:54:09 UTC

Is there anyway to turn off the <META http-equiv="Content-type"> tag that
get's inserted in the output document?  Rendering documents in Netscape with
this tag in place is problematic.   I would like to do the "correct" thing
and set this HTTP header on the server.

Why is there no option to turn this off?



Re:

Posted by Gary L Peskin <ga...@firstech.com>.
Jeff --

In XalanJ 2.2.D02 and later, we've added a new output property so that
you can change your stylesheet to include this xalan extension attribute
as follows:

  <xsl:output ... xalan:omit-meta-tag="yes"/>

where the xalan namespace is declared as:

  xmlns:xalan="http://xml.apache.org/xslt"

You'd have to build these releases yourself from the latest CVS.

Until this becomes available in XalanJ 2.2.0, most people have gotten
arounds this problem with an appropriate specification of the encoding
attribute on xsl:output which is, of course, a solution portable to
other XSLT processors.

HTH,
Gary

> Jeff Winter wrote:
> 
> Is there anyway to turn off the <META http-equiv="Content-type"> tag
> that get's inserted in the output document?  Rendering documents in
> Netscape with this tag in place is problematic.   I would like to do
> the "correct" thing and set this HTTP header on the server.
> 
> Why is there no option to turn this off?

indexed elements

Posted by Charlie Hart <ch...@nc.rr.com>.
I have an indexed element like:
<element>
   <child  changed= "no"/>
   <child  changed= 'yes'/>
   <child  changed = "no"/>
</element>

When I get a nodeRefList of all changed child elements using xpath, I
will get element 2. I want to update the same element in another
document. How can I find the index of the elements I retrieve?

thanks...charlie