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

Can I force XSLT to output the long-form of an element

Subject: Can I force XSLT to output the long-form of an element rather than the shorthand form?
From: Chris Loschen <loschen@xxxxxxxxxxxxx>
Date: Fri, 02 May 2003 12:36:55 -0400
long form of xsl
Hi, all!

Yes, I know that '<a id="page-1"></a>' and '<a id="page-1" />' are supposed to be equivalent,
but one of the tools my users use (XMetaL) doesn't. It throws a validation error for '<a id="page-1" />'
but not (interestingly enough) for '<br />'. My reading of what they're trying to do is that they
say that the shorthand form is allowed if and only if the element is defined as EMPTY in the
associated DTD.


In any case, I need to provide the long-form of such elements or my users can't edit the files
in XMetaL. I've been running a search-and-replace after the XSLT run up until now, and I can
continue to do that, but I wondered if there's some switch or option I haven't yet found that
would let XSLT produce the right (or wrong) thing. I'm using xalan-java 2.5 if that helps.


Thanks for your help!


--Chris


----------------------------------------------------------------------------------------
Texterity ~ XML and PDF ePublishing Services
----------------------------------------------------------------------------------------
Chris Loschen, XML Developer
Texterity, Inc.
144 Turnpike Road
Southborough, MA 01772 USA
tel: +1.508.804.3033
fax: +1.508.804.3110
email: loschen@xxxxxxxxxxxxx
http://www.texterity.com/



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



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.