Subject: Re: [xsl] Stopping any processing instruction output From: "Sam Carleton" <scarleton@xxxxxxxxxxxxxxxx> Date: Sat, 3 Feb 2007 13:57:12 -0500 |
> 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...)
Try adding omit-xml-declaration="yes" to xsl:output.
> 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 xsl:copy/xsl:copy-of.
<xsl:template match="/"> <div class="menuBar"> <xsl:apply-templates select="(key('elem-by-oid',$objectID))"/> </div> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Stopping any processing i, Michael Kay | Thread | Re: [xsl] Stopping any processing i, David Carlisle |
RE: [xsl] Stopping any processing i, Michael Kay | Date | Re: [xsl] transforming something wi, David Carlisle |
Month |