Closed
Bug 151161
Opened 23 years ago
Closed 23 years ago
xsl does not render correctly
Categories
(Core :: XSLT, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: neil.walker, Assigned: peterv)
References
()
Details
The above xml with a simple stylesheet does not render - it only displays
correctly in IE5.5 and above (NS is the same problem). I'm using release 1,
candidate 1.
The style sheet is rather simple:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <!-- Edited with XML Spy v4.2
-->
- <HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <BODY STYLE="font-family:Arial, helvetica, sans-serif; font-size:12pt;
background-color:#EEEEEE">
- <xsl:for-each select="breakfast_menu/food">
- <DIV STYLE="background-color:teal; color:white; padding:4px">
- <SPAN STYLE="font-weight:bold; color:white">
<xsl:value-of select="name" />
</SPAN>
-
<xsl:value-of select="price" />
</DIV>
- <DIV STYLE="margin-left:20px; margin-bottom:1em; font-size:10pt">
<xsl:value-of select="description" />
- <SPAN STYLE="font-style:italic">
(
<xsl:value-of select="calories" />
calories per serving)
</SPAN>
</DIV>
</xsl:for-each>
</BODY>
</HTML>
Comment 1•23 years ago
|
||
Browser, not bugzilla
Assignee: myk → peterv
Component: User Interface → XSLT
Product: Bugzilla → Browser
QA Contact: matty → keith
Version: unspecified → other
| Reporter | ||
Comment 2•23 years ago
|
||
Looks like I added a bug from the wrong page. I searched for this bug, didn't
find it so clicked on add bug and it looks like it defaulted to Bugzilla - not
really clear in the interface what piece of software you are writing a bug for.
I assumed Mozilla.
Comment 3•23 years ago
|
||
http://www.w3schools.com/xml/simplexsl.xml
-> http://www.w3schools.com/xml/simple.xsl
-> <HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
The XSLT namespace is http://www.w3.org/1999/XSL/Transform.
See http://www.mozilla.org/projects/xslt/index.html#faq items 1 and 2.
Works fine with the proper namespace.
i.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•23 years ago
|
||
Sorry, you are right. Apologies. But thanks for the XSL tutorial :)
But I always thought the namespace was optional and not used as such.
verified per reporters comments
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•