[oXygen-user] switch off: auto self-standing tag function

Takako Kato
Mon Feb 2 18:29:39 CST 2009


Dear Sorin,
Thanks very much for your help! I understood why, and also, it worked!

Your help is very much appreciated.

Best wishes,
Tak

2009/2/2 Sorin Ristache <>:
> Hello Tak,
>
> The XSLT processor generates some HTML tags like SCRIPT and BR as
> auto-closing tag (<SCRIPT scr="..." ... />) or as open tag + close tag
> (<SCRIPT scr="..." ... > </SCRIPT>) depending on the output method of the
> transformation. For the HTML output method it generates open tag + close tag
> so that the tags are accepted by Web browsers. But the default method is XML
> which means auto-closing tag. Please add the following instruction at the
> beginning of your XSLT stylesheet:
>
>  <xsl:output method="html"/>
>
>
> Regards,
> Sorin
>
>
> Takako Kato wrote:
>>
>> Dear list,
>> In my xsl, in my header, I have a link to java script file, which
>> cannot be a self-standing tag:
>>
>> <SCRIPT language="Javascript1.2" src="../java/menu_desc.js"
>> type="text/javascript"></SCRIPT>
>>
>> Every time I transform a xml file, however, the Oxygen automatically
>> change the above link into:
>>
>> <SCRIPT language="Javascript1.2" src="../java/menu_desc.js"
>> type="text/javascript"/>.
>>
>> I want to switch off this function, i.e, the function, which change
>> the empty tags into self-standing tag automatically. Could anybody
>> teach me how to do this, please/
>>
>> Thanks very much.
>>
>> Best wishes,
>> Tak
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>



-- 
--------------------------
Takako Kato

School of English
University of Leicester
University Road
Leicester LE1 7RH, UK
+44-(0)116-252-2628
http://www.le.ac.uk/ee/em1060to1220/



More information about the oXygen-user mailing list