⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 article.xsl

📁 开发web_xml
💻 XSL
字号:

<?xml version="1.0"?> 

<xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/TR/WD-xsl"
   xmlns="http://www.w3.org/TR/REC-html40" 
   result-ns="">

  <!-- Root template -->
  <xsl:template match="/">
    <HTML>
     <HEAD>
       <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
       <STYLE TYPE="text/css"> 

        <!-- Navigation Bar Styles -->

        A:link { 
           COLOR:  Navy; 
           text-decoration: none }
        A:visited { COLOR: Navy }
        A:active { COLOR: blue }

        #NavText { 
           font-weight: bold; 
           font-size: 14px;
           text-decoration: none;
           font-family: "Times New Roman", "Garamond", "serif" }

        #NavHead { 
           font-weight: bold; 
           text-align: center; 
           font-size: 24px;
           text-decoration: none;
           font-family: "Times New Roman", "serif", "Garamond"; color: white;
           display: block; background-color: navy; border-style: outset;
           margin-left: 2%; margin-right: 5% }

        <!-- Document Styles -->

        .headline {		
           color: #FF0000;
           background-color: #FFFFFF;
           text-transform: Capitalize;
           text-align: Left; }

        .deck {		
           font-style: italic;
           font-size: 14px;
           font-weight: bold;
           color: black;
           margin-left: 64px;
           font-family: Arial, helvetica, sans-serif;}

        .byline {
           color: Navy;
           font-weight: bold;
           font-size: 14px;
           font-family: Arial, helvetica, sans-serif;}

        .pubDate {
           color: Red;
           font-weight: normal;
           font-size: 12px;
           font-family: Arial, helvetica, sans-serif;}

        .copyright {
           color: Red;
           font-weight: normal;
           font-size: 12px;
           font-family: Arial, helvetica, sans-serif;}

        .aBody { display: block;
           font-weight: normal;
           font-size: 12px; 
           font-family: "Arial", "Garamond", "serif"; }

        .dropCap { background: white;
           color: red;
           float: left;
           vertical-align: text-top;
           font-size: 24px;
           font-style: bold;
           border: none; }

        .bold { font-style: bold; }
        .ital { font-style: italic; }

        #BoxCopy { color: white;
           background-color: red;
           vertical-align: text-bottom;
           font-size: 24px;
           font-style: bold;
           font-family: "Times New Roman", "serif", "Garamond"; color: white;
           padding-left: 1px;
           padding-right: 3px;
           text-decoration: none;
           border: none; }

        #BoxCopy1 { color: white;
            background-color: gray;
            vertical-align: text-top;
            font-size: 24px;
            font-style: bold;
            text-decoration: none;
            border: inset }

        .BoxCopy2 { color: navy;
            background-color: white;
            float: right;
            vertical-align: text-top;
            font-size: 20px;
            font-style: bold;
            border: none; }
      </STYLE>
      <TITLE>
        <xsl:value-of select="article/headline"/>
      </TITLE>

     </HEAD>
     <BODY>

    <TABLE WIDTH="100%">
      <TR>
        <TD WIDTH="121" HEIGHT="211" BACKGROUND="images/navBackground.jpg" VALIGN="TOP">
        
        <Span id="NavHead">InSite</Span>
        
        <P>
        <A HREF="/present/default.asp" TARGET="_top">
           <SPAN id="NavText">Presentation</SPAN>
        </A></P>
        
        <P>
        <A HREF="/markup/default.asp" TARGET="_top">
           <SPAN id="NavText">Markup</SPAN>
        </A></P>
        
        <P>
        <A HREF="/markup/xml/default.asp" TARGET="MainPane">
           <SPAN id="NavText">XML</SPAN>
        </A></P>
        
        <P>
        <A HREF="/scripting/default.asp" TARGET="_top">
           <SPAN id="NavText">Scripting</SPAN>
        </A></P>
        
        <P>
        <A HREF="/db/searchform.html" TARGET="_top">
           <SPAN id="NavText">Tools Database</SPAN>
        </A></P>
        
        <P>
        <A HREF="/archives/default.asp" TARGET="_top">
           <SPAN id="NavText">Archives</SPAN>
        </A></P>
        
        <P>
        <A HREF="bio.shtml"><SPAN id="NavText">About Us</SPAN>
        </A></P>

        <P>
        <A HREF="http://www.beyondhtml.com/" TARGET="_top">
           <SPAN id="NavText">Home</SPAN>
        </A></P></TD>

        <TD WIDTH="35" HEIGHT="211" BGCOLOR="#FFFFFF" VALIGN="TOP"></TD>
        <TD WIDTH="442" HEIGHT="211" BGCOLOR="#FFFFFF" VALIGN="TOP">

    <MAP NAME="logosmall">
       <AREA SHAPE="RECT" COORDS="0,1,199,52" 
             HREF="http://www.beyondhtml.com" 
             ALT="Jump to Home page"></AREA>
       <AREA SHAPE="default" HREF="http://www.beyondhtml.com"></AREA>
    </MAP>
    
    <P>
      <BR></BR> <IMG SRC="images/logo.gif" 
                ALT="BeyondHTML Logo" ALIGN="MIDDLE" 
                WIDTH="426" HEIGHT="112">
           </IMG>
    </P>
 <!-- template rules go here -->

             <Span ID="BoxCopy"> 
                <xsl:value-of select="article/headline"/>
             </Span><BR></BR>

             <DIV Class="deck">
                <xsl:value-of select="article/deck"/>
             </DIV>
             <BR></BR>

             <DIV Class="byline">
                By
                <xsl:value-of select="article/byline"/>
             </DIV>
             <BR></BR>
             <DIV Class="aBody">
                <P><xsl:value-of select="article//aBody/para1"/></P>
                <P><xsl:value-of select="article//aBody/para"/></P>
                <P><xsl:value-of select="article//aBody/para2"/></P>
             </DIV>
        </TD></TR>
      </TABLE>

      <P ALIGN="CENTER"><FONT SIZE="-1"> [<A HREF="/present/index.xml">Presentation</A>]
      [<A HREF="/markup/index.xml">Markup</A>] [<A HREF="/markup/xml/index.xml">XML</A>]
      <A HREF="/scripting/index.xml">[Scripting</A>] [<A HREF="/db/searchform.html">Tools
        Database</A>] [<A HREF="/archives/index.xml">Archives</A>] [<A HREF="/bio.shtml">About
        Us</A>] [<A HREF="http://www.beyondhtml.com/">Home</A>]</FONT> </P>
    <HR></HR>
    
    <P><FONT SIZE="-1">Copyright (c) 1998, 1999.
      <A HREF="mailto:mfloyd@beyondhtml.com">Michael Floyd</A> . All Rights Reserved</FONT>
    </P>
    
    <P><FONT SIZE="-1"><I>Last Modified:

      <!--#echo var="LAST_MODIFIED"--></I></FONT></P>

      </BODY>
    </HTML>
  </xsl:template>

  <xsl:template match="aBody">
     <P>
        <xsl:apply-templates/>
     </P>
  </xsl:template>

  <xsl:template match="dropCap">
     <DIV Class="dropCap">
        <xsl:apply-templates />
     </DIV>
  </xsl:template>

  <xsl:template match="bold">
     <B>
        <xsl:apply-templates/>
     </B>
  </xsl:template>

  <xsl:template match="italic">
     <I>
        <xsl:apply-templates/>
     </I>
  </xsl:template>

  <xsl:template match="byline[@Email]">
     <A HREF="mailto:mfloyd@BeyondHTML.com">
        <xsl:apply-templates/>
      </A>
  </xsl:template>
    
 <!-- template rules end here -->
      

</xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -