xsl-list
[Top] [All Lists]

Re: Can I force XSLT to output the long-form of an element rather than the shorthand form?

2003-05-05 12:13:42
At 12:16 PM 5/5/03, you wrote:
Chris,

Also worth the look is how the documents are set up for XMetaL. Remember XMetaL is also an SGML editor, which accounts for some of its XML weirdnesses. One thing I've found is it seems to make a difference whether an XML declaration is present, and what it says. If there isn't one there, XMetaL may be applying some SGML rules.

I think. I haven't dug into their docs or support to substantiate the details of any of this.

(No longer an XSL question...)

Cheers,
Wendell

Thanks for your help, everybody!

Some replies:

Yes, the documents do have an XML declaration, almost always with the following form:

<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE html PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.0.1 Document//EN" "oebdoc101.dtd">

I do need to use XML output, not HTML output -- as someone pointed out, HTML output produces tags like <BR>, which aren't allowed in my structure (which is much closer to XHTML than HTML).

Several people suggested forcing a space (or a non-breaking space) into the empty anchor tag so that it would no longer be empty, but that would add an extra space into my copy (which would mean that the content is incorrect), and in any case, I'd end up with an underlined (hyperlinked) space which I don't want. These are actually intended to be target anchors, not clickable hyperlinks. So if I did force a space in this spot, I'd just have to come back in and take it out again, so I'm
still stuck with a post-process step.

It sounds like I'm stuck with what I've been doing already. Oh well -- it works, so I'm not complaining
(too much).

Thanks again!


At 03:03 PM 5/2/2003, Joe wrote:
>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.

First thing to check, if you haven't already done so: Make sure your
stylesheet is set to HTML ouput mode, not XML. The /> convention is not
really supported in HTML.


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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

--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(_at_)texterity(_dot_)com
http://www.texterity.com/

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



<Prev in Thread] Current Thread [Next in Thread>