Re: Bug in XML/XSLT display?

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>

Steven Scott wrote:
> I'm totally new to this whole XSL thing, so it's very possible I'm
> just doing something stupid.  However, it doesn't seem like I am.
> 
> I have an XML file and a corresponding XSL file, that I temporarily
> put at http://progoth.com/~progoth/MSISDoc.xml (and .xsl)
> 
> I have an xsl:template with a match of "field", and in the appropriate
> spot I have
> <xsl:apply-templates select="field">
>  <xsl:sort select="@name"/>
> </xsl:apply-templates>
> 
> The template is applied, the text is displayed, but the style isn't
> there (it's supposed to have <b> elements and <br/> elements, just to
> name a few, but instead it's one long run-together mess). 

Make sure you create real XHTML elements, for instance by setting the 
default namespace:

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.