I'm using the following xml file which uses a xsd and try to use a xsl for presentation but it is not beeing used. Instead in my navigator I have only
Registration Information Mascot Friends Registration Required fields check availability I accept. Create my account. en
the xml file:
the xsl file:Code:<?xml version="1.0" encoding="UTF-8"?> <mf:content xmlns:mf="http://mascotfriends.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mascotfriends.com ../schema/registration.xsd"> <?xml-stylesheet type="text/xsl" href="../registration.xsl"?> <mf:title>Registration Information</mf:title> <mf:description>Mascot Friends Registration</mf:description> <mf:required>Required fields</mf:required> <mf:availability>check availability</mf:availability> <mf:submit>I accept. Create my account.</mf:submit> <mf:lang>en</mf:lang> </mf:content>
somebody can give me a clue? Please, please, please. Already did a long research in Google but no solution yet.Code:<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet [<!ENTITY bullet "•"> <!ENTITY nbsp " ">]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mf="http://mascotfriends.com"> <xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> <xsl:template match="/"> <html> <head> </head> <body> <p> <label><xsl:value-of select="mf:content/mf:title"/><span class="red"> *</span>:</label> <label><xsl:value-of select="mf:content/mf:description"/><span class="red"> *</span>:</label> <label><xsl:value-of select="mf:content/mf:required"/><span class="red"> *</span>:</label> <label><xsl:value-of select="mf:content/mf:availability"/><span class="red"> *</span>:</label> <label><xsl:value-of select="mf:content/mf:submit"/><span class="red"> *</span>:</label> <label><xsl:value-of select="mf:content/mf:lang"/><span class="red"> *</span>:</label> </p> </body> </html> </xsl:template> </xsl:stylesheet>


Reply With Quote

Bookmarks