“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Charles code works.You did not mention how are you trying to view the results,
You may have 2 options
1. view the xml in browser using default XSL/XSLT parsers
2. use a stand alone XSL/XSLT parser e.g xalan....
The easier option will be to use browsers built in parser (both NS6+ and IE6+ do have their built in xsl parser).
Here is what you need to do for viewing this XML file in a browser.
Save both XML and XSL files in the same folder.
in the xml file right below the XML declaration (<?xml version="1.0"?>)
paste this line
<?xml-stylesheet href="jiggs.xsl" type="text/xsl" encoding="ISO-8859-1"?>
Now save Charles posted XSL code in a file and name it "jiggs.xsl" for this examples sake.
Make sure that both files have their appropriate file extensions.( .xml and .xsl)
Once this is done open the XML file with NS6+ or IE6+ browsers..
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
At this very moment I'm tearing out my hair over an XSLT project in another window.
It's a most pecular problem and it's a little something I tossed together for my wife. She marked up the XML and then sent me the files by e-mail. I cannot see anything wrong but it keeps flagging an error at the first entity with the message "End tag was not expected at this location." I think it has something to do with the encoding and new line characters.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
My knowledgeis rusty(have not used it for 3 yrs at least) for XSL when it comes to extreme logic intentsive code...but you can email me (xml and XSL)to take a look...may be its something very simple which you can not see at this time..
Khalid, thanks. But I think that I need to start by walking the files home on a disk. I've noticed before that Outlook Express changes files.
sheila, Apart <xsl:template match="employee[name/text() = 'Name']"/>matches all 'employee' elements that contain a 'name' element that contains the text 'Name' while <xsl:template match="employee[name]" /> matches all 'employee' elements. Taken together, the most specific match wins.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks