This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Combining XSL with DTDs


I'm still confused here.  I though I had done that like in the following:

<font size="2" face="Georgia, Times New Roman, Times, serif" color="#000000">
<xsl:for-each select="AddressLine2" />
</font>

and

-<td width="134">
-<p>
  <font size="2" face="Georgia, Times New Roman, Times, serif" 
color="#000000">
<xsl:value-of select="AccountName" />
</font>
</p>
</td>

Am I referencing the nodes incorrectly?

Thanks,

Lisa



At 07:44 PM 2/11/00 +0000, you wrote:
>Hi Lisa,
>
>The reason you are getting the stylesheet's HTML displayed without data is
>because the stylesheet's template (matching the root node, <xsl:template
>match="/">...</xsl:template>) does not actually contain any instructions to
>descend through the source tree and create output. All it says to do is
>create HTML elements, which it is doing faithfully.
>
>The simple solution here is within the table cells in your template, to
>place some statements such as
>
><xsl:apply-templates select="[select some node here]"/>
>  or
><xsl:value-of select="[select some node here]"/>
>
>These should work for your case because the data is highly structured. In a
>more general case, you would want to break up the processing logic into
>several different templates, as a more robust and versatile solution.
>
>XSL Info has some tutorials listed at
>
>http://xslinfo.com/tutorials/ ... check them out to learn more about
>templates. But keep in mind that as long as you're using IE5, you're
>probably on your own to an extent, since the technology has progressed
>since that was released a year ago.
>
>Your instance and DTD are fine, although you do not need the internal
>subset (the stuff in [ ]) in your DOCTYPE declaration since all it does is
>call the same file you've named in the SYSTEM identifier.
>
>Have a good weekend, XSLers--!
>
>--Wendell
>
>At 03:56 PM 2/11/00 -0700, you wrote:
> >Hi-
> >
> >I'm just learning XML/XSL.  I have created an foo.XML file which references
> >a DTD to combine three other XML files which must all be displayed together
> >in a browser.  I've created an XSL file to display the data in the foo.XML
> >file.  No matter where I try to put the XSL stylesheet reference, I cannot
> >seem to get them all to work together.  I either get all the data with no
> >XSL formatting, or I get the formatting with no data.
> >
> >Any help would be appreciated.
> >
> >-L
> >Attachment Converted: "C:\PROGRAM FILES\EUDORA\Attach\Demo.zip"
> >
>
>======================================================================
>Wendell Piez                            mailto:wapiez@mulberrytech.com
>Mulberry Technologies, Inc.                http://www.mulberrytech.com
>17 West Jefferson Street                    Direct Phone: 301/315-9635
>Suite 207                                          Phone: 301/315-9631
>Rockville, MD  20850                                 Fax: 301/315-8285
>----------------------------------------------------------------------
>   Mulberry Technologies: A Consultancy Specializing in SGML and XML
>======================================================================
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]