Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Probably a very simple answer!

Status
Not open for further replies.

OKComputer

Technical User
Nov 5, 2004
1
GB
I'm very new to XML but I have hit my first problem!

I have created a very basic xsd schema, document and xsl stylesheet. I am attempting to display some data that has been entered in the xml document. However, when I go to XSL transformation (I'm using Altova XMLSpy) the html output show's absolutely nothing!)

Here is the code from my XSL stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fo=" <xsl:template match="/">
<xsl:value-of select="PODS/Customer/Name"/>
</xsl:template>
</xsl:stylesheet>

My XML schema shows PODS as the root element with (amongst other things) Customer separated by a sequencer and finally Code again separated by another sequencer.

Any ideas why this would be? Have I supplied enough information, as you can tell, I'm completely new to XML so you will have to forgive me for my amateurish post!!!

Cheers.
 
Make sure the result of your XSL is really a HTML document. When XMLSpy sees that you want a HTML document as output, it will use a web browser to display the results. And if the file you produced doesn't have the <html><head>, etc. elements of a valid HTML document, it won't show anything.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top