OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
xml -> html with xslt
This page's ID:
23008
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I have this xml file (a.xml): [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="a.xsl"?> <document> <list> <item>1</item> <item>2</item> <item>3</item> </list> </document> [/code] this xslt file (a.xsl): [code] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html><body> <xsl:apply-templates select="//list"/> </body></html> </xsl:template> <xsl:template match="list"> <ul> <xsl:for-each select="node()"> <li>element <xsl:apply-templates select="." /> </li> </xsl:for-each> </ul> </xsl:template> </xsl:stylesheet>[/code] and this is the result aftere the transformation with saxon 6.5.3 (a.html): [code] <html> <body> <ul> <li>element </li> <li>element 1 </li> <li>element </li> <li>element 2 </li> <li>element </li> <li>element 3 </li> <li>element </li> </ul> </body> </html>[/code] Why there are so many <li> items in the output and not just 3??? If i open the file a.xml with intertnet explorer 6.0 there are only 3 item in the list, but if i open it with FireFox the result is the same of saxon. Why? thank you for you replies. [small](Edited by [internallink=23006]anx721[/internallink] on 08-21-2004 00:46)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »