Re: Bug in XML/XSLT display?

Emmanouil Batsis <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
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).  Just to
> clarify, the rest of the document shows up correctly, but the parts
> from the "field" template do not.  DOM Inspector shows the elements as
> being there, and highlights them in red when I select them.  When I
> CTRL-A and "View Selection Source", it shows all the formatting
> elements, I can copy and paste the output into a .html file and it
> displays perfectly (and validates @ w3.org when I change <br>'s to
> <br/>).
> 
> This XML/XSL works fine in IE6, and the output from Saxon8 seems to be
> fine, and mozilla seems to output what I want, just not display it
> correctly.
> 
> I also just added the output from View Selection Source at
> http://progoth.com/~progoth/MSISDoc.html to show what should happen.
> 
> Any feedback on this (or a pointer to a more appropriate NG) would be
> great
> 

Probably your namespace prefixes. Cannot help you more without a link to 
a sample page ;-)

hth,

Manos
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.