AnsweredAssumed Answered

XSD and XSL but no HTML?

Question asked by jcianflone on Oct 19, 2007
Latest reply on Oct 19, 2007 by jcianflone
Hello,
I am running into an issue where I uploaded an XSD and XSL files to my Data Dictionary.  I then go into my staging sandbox and create a new page, the XML renders, but no HTML.

What is strange is that it only happens with this one template.  All my other templates spit out HTML and XML correctly.  HELP!


here is my XSD

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   targetNamespace="http://pluto.temel.com:8080/alfresco/"
   xmlns:yb="http://pluto.temel.com:8080/alfresco/"
   xmlns:alf="http://www.alfresco.org"
   elementFormDefault="qualified">

   <xs:element name="yellowbook_page">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="page_content">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="page_header">
                        <xs:simpleType>
                           <xs:restriction base="xs:normalizedString">   
                              <xs:enumeration value="about">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>About Yellow Book Section</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="products">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Yellow Book Products Section</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="careers">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Careers Section</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="faqs">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>FAQs Section</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="generic">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Generic Section</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:enumeration>
                           </xs:restriction>
                        </xs:simpleType>
                     </xs:element>
                     <xs:element maxOccurs="3" minOccurs="1" name="big_columns">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="largeImage" type="xs:anyURI">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Large Image Upload</alf:label>
                                       <alf:appearance>full</alf:appearance>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:element>
                              <xs:element name="smallImage" type="xs:anyURI" minOccurs="0">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Small Image</alf:label>
                                       <alf:appearance>full</alf:appearance>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:element>
                              <xs:element name="smallText" type="xs:normalizedString" minOccurs="0">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Text Headline</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:element>
                              <xs:element name="link" type="xs:normalizedString">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Learn More Link</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:element>
                              <xs:element name="contentBlock" type="xs:normalizedString">
                                 <xs:annotation>
                                    <xs:appinfo>
                                       <alf:label>Content</alf:label>
                                    </xs:appinfo>
                                 </xs:annotation>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element maxOccurs="1" minOccurs="0" name="main_body" type="xs:string">
                        <xs:annotation>
                           <xs:appinfo>
                              <alf:label>Bottom Page Content</alf:label>
                              <alf:appearance>full</alf:appearance>
                           </xs:appinfo>
                        </xs:annotation>
                     </xs:element>   
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
            <xs:element name="general_page_information">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element minOccurs="1" name="page_title" type="xs:normalizedString">
                        <xs:annotation>
                           <xs:appinfo>
                              <alf:label>Page Title</alf:label>
                           </xs:appinfo>
                        </xs:annotation>
                     </xs:element>
                     <xs:element minOccurs="0" name="page_description" type="xs:normalizedString">
                        <xs:annotation>
                           <xs:appinfo>
                              <alf:label>Description</alf:label>
                           </xs:appinfo>
                        </xs:annotation>
                     </xs:element>
                     <xs:element minOccurs="0" name="page_keywords" type="xs:normalizedString">
                        <xs:annotation>
                           <xs:appinfo>
                              <alf:label>Keywords</alf:label>
                           </xs:appinfo>
                        </xs:annotation>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

here is my XSL

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet  [
   <!ENTITY nbsp   " ">
   <!ENTITY copy   "©">
   <!ENTITY reg    "®">
   <!ENTITY trade  "™">
   <!ENTITY mdash  "—">
   <!ENTITY ldquo  "“">
   <!ENTITY rdquo  "”">
]>
<xsl:stylesheet version="1.0"
            xmlns="http://www.w3.org/1999/xhtml"
            xmlns:yb="http://pluto.temel.com:8080/alfresco/"
             xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
            xmlns:lxslt="http:/xml.apache.com/xslt"
            xmlns:xalan="http://xml.apache.org/xalan"
            xmlns:exsl="http://exslt.org/common"
            xmlns:ev="http://www.w3.org/2001/xml-events">
            
<!– *INCLUDED XSL FILES******************************************** –>
<xsl:include href="xsl_templates/templates.xsl" />
<xsl:include href="xsl_templates/htmlHead.xsl" />
<xsl:include href="xsl_templates/branding.xsl" />
<xsl:include href="xsl_templates/content.xsl" />
<xsl:include href="xsl_templates/navigation.xsl" />
<xsl:include href="xsl_templates/siteInfo.xsl" />

<xsl:output method="html"
         encoding="utf-8"
         doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
         doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'/>

<!– *XSL VARIABLES************************************************* –>
<xsl:variable name="sm" select="document('navigational_sitemap.xml')//yb:yellowbook_sitemap" />
<xsl:variable name="path" select="document('xsl_templates/config.xml')//yb:config/yb:path" />
<xsl:variable name="pageType" select="yb:yellowbook_page/yb:page_content/yb:page_header" />

<xsl:template match="/">
   <html>
      <head>
         <xsl:apply-templates select="yb:yellowbook_page/yb:general_page_information" />      
      </head>
      <body id="template">
         <a href="#skipToMainContent" class="readOnly">Skip to main content.</a>
         <div id="frame">
            <xsl:call-template name="brandingElements" />
            <div id="container" class="two_column">
               <xsl:call-template name="message_block" />
               <div id="content" class="clearfix">
                  <xsl:call-template name="sectional_headers" />
                  <!– *SECONDARY CONTENT********************************************* –>
                  <xsl:call-template name="secondary_content_area" />
                  
                  <!– *MAJOR CONTENT************************************************* –>
                  <a name="skipToMainContent" id="skipToMainContent" class="readOnly"> </a>
                  <div id="major_content">
                     <xsl:apply-templates select="yb:yellowbook_page/yb:page_content/yb:big_columns" />
                  </div>
                  <!– *TERTIARY CONTENT********************************************** –>
                  <div id="tertiary_content"> </div>               
               </div>
               <xsl:call-template name="siteInfo" />
            </div>
            <div id="copyrightInformation" class="clearfix">Copyright &copy; </div>   
         </div>
      </body>
   </html>
</xsl:template>

</xsl:stylesheet>

I really really need help with this guys.  Thanks in advance.

Joe

Outcomes