Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

below is my Xml code. <?xml version=\"1.0\" ?> <?xml-stylesheet type=\"text/xsl\

ID: 3891285 • Letter: B

Question

below is my Xml code.

<?xml version="1.0" ?>

<?xml-stylesheet type="text/xsl" href="CAFE.xsl"?>

<CAFES>

<CAFE CAFE_TYPE="Primarily Take-Out">

<CAFE_NAME>New Mexico</CAFE_NAME>

<FOOD_QUALITY>Average</FOOD_QUALITY>

<ENVIRON>Great!</ENVIRON>

<COST_RATING>$3.50 per meal</COST_RATING>

<COMMENTS>Should order well in time.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="Brunch">

<CAFE_NAME>Moscow</CAFE_NAME>

<FOOD_QUALITY>Outstanding</FOOD_QUALITY>

<ENVIRON>Average</ENVIRON>

<COST_RATING>$8 per person</COST_RATING>

<COMMENTS>A good place for weekend brunch.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="Formal Dinner">

<CAFE_NAME>Spring in Paris</CAFE_NAME>

<FOOD_QUALITY>Excellent</FOOD_QUALITY>

<ENVIRON>Fantastic</ENVIRON>

<COST_RATING>$19 per plate</COST_RATING>

<COMMENTS>Got to be rich to go there.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="Asian Grill">

<CAFE_NAME>Big Saigon</CAFE_NAME>

<FOOD_QUALITY>Good</FOOD_QUALITY>

<ENVIRON>Ok</ENVIRON>

<COST_RATING>$7 per plate</COST_RATING>

<COMMENTS>Good for quick lunch.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="Take-Out">

<CAFE_NAME>Aby's Diner</CAFE_NAME>

<FOOD_QUALITY>Fantastic</FOOD_QUALITY>

<ENVIRON>Splendid</ENVIRON>

<COST_RATING>$7 per plate</COST_RATING>

<COMMENTS>Always eat at Aby's Diner.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="African Food">

<CAFE_NAME>lagos Cafe</CAFE_NAME>

<FOOD_QUALITY>Rich</FOOD_QUALITY>

<ENVIRON>Perfect</ENVIRON>

<COST_RATING>$27 per plate</COST_RATING>

<COMMENTS>Very expensive to have dinner there.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="Mexican Gill">

<CAFE_NAME>Alicia Mexican Grill</CAFE_NAME>

<FOOD_QUALITY>Comfort food</FOOD_QUALITY>

<ENVIRON>Excellent</ENVIRON>

<COST_RATING>$10 per plate</COST_RATING>

<COMMENTS>Small plates quick bite.</COMMENTS>

</CAFE>

<CAFE CAFE_TYPE="South African Food">

<CAFE_NAME>South African Cuisine</CAFE_NAME>

<FOOD_QUALITY>Authentic</FOOD_QUALITY>

<ENVIRON>Traditional</ENVIRON>

<COST_RATING>$30 per plate</COST_RATING>

<COMMENTS>Have to be ready to spend some money.</COMMENTS>

</CAFE>

</CAFES>

below is my 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>

<P><B> This is an XML Document on View! </B></P>

<P><EM>It uses XSL Sheet</EM></P>

<P>These XML documents have been produced </P>

<P>using only NotePad and Internet Explorer v5.0 </P>

<TABLE border="1">

<caption><B><font size="5" color="Red">Local</font></B></caption>

  

<TR>

<TD><B>Cafe Type</B></TD>

<TD><B>Cafe Name</B></TD>

<TD><B>Food</B></TD>

<TD><B>Enviroment</B></TD>

<TD><B>Meal Cost</B></TD>

<TD><B>Comments</B></TD>

</TR>

<xsl:for-each select="CAFES/CAFE">

<TR>

<TD><xsl:value-of select="@CAFE_Type"/></TD>

<TD><xsl:value-of select="CAFE_NAME"/></TD>

<TD><xsl:value-of select="FOOD_QUALITY"/></TD>

<TD><xsl:value-of select="ENVIRON"/></TD>

<TD><xsl:value-of select="COST_RATING"/></TD>

<TD><xsl:value-of select="COMMENTS"/></TD>

</TR>

</xsl:for-each>

</TABLE>

</BODY>

</HTML>

</xsl:template>

</xsl:stylesheet>

I keep getting this error (This XML file does not appear to have any style information associated with it)

please what am i doing wrong

Explanation / Answer

This XML file does not appear to have any style information associated with it. The document tree is shown below.

You can ignore this completely. It doesn't mean anything important and can be safely ignored. For the technical description of what it means, see below.

Every sitemap file created by Sitemap Automator is called an XML Sitemap file. XML is a way of marking up a file to give the text meaning. For example, you can include a URL in a text file and surround it by the XML tags <url> and </url>. This would give an application instructions on how to handle the text (ie treat it as a URL).

An advanced feature of an XML file is to give styling information. This means that the XML document can be displayed to you in your web browser with fancy font styling to make it look nice. Since an XML sitemap file is for search engines only it doesn't need any kind of styling. When you go to view the sitemap in your browser your browser is just telling you that there is no styling information so it is displaying the XML file as is.

Hope this will help

Please comment back if you have queries