[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Stopping any processing instruction output

Subject: Re: Stopping any processing instruction output
From: "Sam Carleton" <scarleton@xxxxxxxxxxxxxxxx>
Date: Sat, 3 Feb 2007 13:57:12 -0500
Re:  Stopping any processing instruction output
On 2/3/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> I am doing some transformation in PHP5, but only pieces.  The
> end result is containing the xml version processing
> instruction, which would prefer it did not.

First thing to understand is that the XML declaration is not a processing
instruction (if you get the terminology right, Google is more likely to find
the answer for you...)

Too true, thanks!

Try adding omit-xml-declaration="yes" to xsl:output.

Works like a charm, thanks!

> Also, is there any way to get ride of the xmlns attribute on the div?

If you don't want the div element to be in the namespace
http://www.miltonstreet.com/events.xsd, then you must change the code that
puts it in that namespace (the namespace declaration will then disappear).
The way to do this depends on whether the div element was constructed as a
literal result element, by using xsl:element, or by using

At present this is the template that creates the div:

 <xsl:template match="/">
   <div class="menuBar">
     <xsl:apply-templates select="(key('elem-by-oid',$objectID))"/>


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.