Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images not showing up in XML 1

Status
Not open for further replies.

vandelayIndustries

Programmer
Jul 4, 2007
11
CA
Hi All,

I'm stuck. I have no idea why my images are not showing up when I apply the XSL stylesheet when I load it in my web browswer. Here is the the image declarations and a sample of my code:
------

<!ENTITY image002 SYSTEM "./wongDenis_files/image002.jpg" NDATA jpg><!ENTITY image004 SYSTEM "./wongDenis_files/image004.jpg" NDATA jpg><!ENTITY image006 SYSTEM "./wongDenis_files/image006.jpg" NDATA jpg><!ENTITY image008 SYSTEM "./wongDenis_files/image008.jpg" NDATA jpg><!ENTITY image010 SYSTEM "./wongDenis_files/image010.jpg" NDATA jpg><!ENTITY image012 SYSTEM "./wongDenis_files/image012.jpg" NDATA jpg><!ENTITY image014 SYSTEM "./wongDenis_files/image014.jpg" NDATA jpg><!ENTITY image016 SYSTEM "./wongDenis_files/image016.jpg" NDATA jpg><!ENTITY image019 SYSTEM "./wongDenis_files/image019.gif" NDATA gif><!ENTITY image022 SYSTEM "./wongDenis_files/image022.gif" NDATA gif><!ENTITY image025 SYSTEM "./wongDenis_files/image025.gif" NDATA gif><!ENTITY image028 SYSTEM "./wongDenis_files/image028.gif" NDATA gif><!ENTITY image031 SYSTEM "./wongDenis_files/image031.gif" NDATA gif><!ENTITY image033 SYSTEM "./wongDenis_files/image033.jpg" NDATA jpg><!ENTITY image035 SYSTEM "./wongDenis_files/image035.jpg" NDATA jpg><!ENTITY image037 SYSTEM "./wongDenis_files/image037.jpg" NDATA jpg><!ENTITY image039 SYSTEM "./wongDenis_files/image039.jpg" NDATA jpg><!ENTITY image041 SYSTEM "./wongDenis_files/image041.jpg" NDATA jpg><!ENTITY image043 SYSTEM "./wongDenis_files/image043.jpg" NDATA jpg><!ENTITY image046 SYSTEM "./wongDenis_files/image046.gif" NDATA gif><!ENTITY image049 SYSTEM "./wongDenis_files/image049.gif" NDATA gif><!ENTITY image052 SYSTEM "./wongDenis_files/image052.gif" NDATA gif><!ENTITY image053 SYSTEM "./wongDenis_files/image053.jpg" NDATA jpg><!ENTITY image056 SYSTEM "./wongDenis_files/image056.gif" NDATA gif><!ENTITY image057 SYSTEM "./wongDenis_files/image057.jpg" NDATA jpg><!ENTITY image058 SYSTEM "./wongDenis_files/image058.jpg" NDATA jpg><!ENTITY image059 SYSTEM "./wongDenis_files/image059.jpg" NDATA jpg><!ENTITY image060 SYSTEM "./wongDenis_files/image060.jpg" NDATA jpg><!ENTITY image061 SYSTEM "./wongDenis_files/image061.jpg" NDATA jpg><!ENTITY image062 SYSTEM "./wongDenis_files/image062.jpg" NDATA jpg><!ENTITY image063 SYSTEM "./wongDenis_files/image063.jpg" NDATA jpg><!ENTITY image065 SYSTEM "./wongDenis_files/image065.jpg" NDATA jpg><!ENTITY image068 SYSTEM "./wongDenis_files/image068.gif" NDATA gif><!ENTITY image070 SYSTEM "./wongDenis_files/image070.jpg" NDATA jpg><!ENTITY image072 SYSTEM "./wongDenis_files/image072.jpg" NDATA jpg>
]>
......
....
....
....
From Figure 1.3, </p>
<p>
<figure entity="image006"/>
</p>
 
[1] >...when I apply the XSL stylesheet when I load it in my web browswer.
If that is the purpose, you simply use it as internal general entity, such as image006.
[2] The entity being a path pointing to the jpg.
[tt] <!ENTITY image006 "./wongDenis_files/image006.jpg">[/tt]
[3] Within the xml, it appears like this.
[tt] <p>
<figure entity="&image006;"/>
</p>[/tt]
[4] When it is transformed, the xsl sets up the image tag for the purpose. Suppose it is in the context of p node, the template creates the image like this..
[tt] <img src="{figure/@entity}" alt="image-ref-to-entiry"></img>[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top