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

RE: will processors support XHTML?

Subject: RE: will processors support XHTML?
From: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx>
Date: Thu, 27 May 2004 16:23:02 +0800
xsl output method xhtml
> <script src="js.js"/>

I think you have to make sure the end tag is there by inserting a empty
<xsl:text></xsl:text> into the script content.


> xsl:output/@method="xhtml"

Currently I use method="xml"; but also set the XHTML docType and namespace.


I am still very new to this so you might want to do some further checking on
that.


Regards,
Daniel


-----Original Message-----
From: Robert Koberg [mailto:rob@xxxxxxxxxx]
Sent: Thursday, 29 April, 2004 12:57 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  will processors support XHTML?


Hi,

I was wondering if the processor developers have any plans to support
xsl:output/@method="xhtml" for xsl version 1.0? I see it for XSL v2, so
perhaps there is no need, but I am feeling that many will stick with v1
for a while.

When people start switching over (to XHTML) there are going to be many
frustrated users who have a page outputted with:

<script src="js.js"/>
or
<title/>

This will cause the page to not display (even though the xhtml is there)
-- they need end elements.

Or:

<textarea/>

which will cause the rest of the page below the textarea to be placed
inside of it.

Have people found other problems?

For a potential faq, here are some workarounds:

<script src="js.js">//</script>

<xsl:template match="xhtml:title | xhtml:textarea">
   <xsl:if test="not(boolean(text()))">
     <xsl:text> </xsl:text>
   </xsl:if>
   <xsl;apply-templates/>
</xsl:template>

I wonder how many people have tried to output XHTML only to be
frustrated and go back to HTML.

best,
-Rob

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.