Re: [xsl] Adding/preserving explicit closing tag on empty elements

Subject: Re: [xsl] Adding/preserving explicit closing tag on empty elements
From: "B. Tommie Usdin" <btusdin@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Feb 2003 13:48:41 -0500
>From: "Mark Griffin" <cornbinder@xxxxxxxxxxxxx>
>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>References: <a0510031cba7883bbecb9@[63.188.73.119]>
>Subject: Re: [xsl] Adding/preserving explicit closing tag on empty elements
>Date: Wed, 19 Feb 2003 08:11:21 -0700
>MIME-Version: 1.0
>Content-Type: text/plain;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 6.00.2800.1106
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>
>I'm using output method="xml" to get XHTML output and I have to use the
>following to force a closing tag on my SVG "image".  Try the same with your
><script> tag:
>
>...
>            <object type="image/svg+xml">
>               <xsl:attribute name="data">
>                  <xsl:value-of select="@PATH"/>
>               </xsl:attribute>
>
>               <xsl:attribute name="width">
>                  <xsl:value-of select="@WIDTH"/>
>               </xsl:attribute>
>
>               <xsl:attribute name="height">
>                  <xsl:value-of select="@HEIGHT"/>
>               </xsl:attribute>
>               <!-- The closing 'object' tag is necessary; a simple ' />'
>shows the .svg but inhibits
>                    display of anything else beyond the .svg display.
>                    xsl:text (a carriage return, here) is added to force
>ouput of the required 'object'
>                    closing tag. -->
>               <xsl:text>
></xsl:text>
>            </object>
>
>Regards,
>Mark G.
>
>
>----- Original Message -----
>From: "Mulberry Technologies List Owner"
><xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx>
>To: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Sent: Tuesday, February 18, 2003 5:44 PM
>Subject: RE: [xsl] Adding/preserving explicit closing tag on empty elements
>
>
>> >Subject: RE: [xsl] Adding/preserving explicit closing tag on empty
>elements
>> >Date: Tue, 18 Feb 2003 15:49:26 -0500
>> >From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
>> >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>> >
>> >[Graham Hannington]
>> >
>> >> >How (I'm using Saxon, if it makes any difference) do I stop an XSLT
>> >> >processor from collapsing:
>> >> >
>> >> ><script src="style/default.vbs" language="VBScript"/></script>
>> >> >
>> >> >into
>> >> >
>> >> ><script src="style/default.vbs" language="VBScript"/>
>> >> >
>> >> >Is there some way to "sneak" a closing tag past the XSLT
>> >> processor, so
>> >> >that it appears in the output file?
>> >
>> >I tried it with MSXML3 and Saxon (I think it is v6.5.2), and both of
>> >them left the closing tag in the output document.
>> >
>> >Cheers,
>> >
>> >Tom P
>>
>>
>>
>>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread