Binding XSL to XML using Dreamweaver 8
Sorry for cross-posting but Paul suggested I might have better results if I posted this here.
Hi,
I posted something a couple of days ago to the Dreamweaver forum about using the Application panel to bind elements in a schema to an XML document. I haven't gotten a response so let me add a little more detail. First of all, I am using Lucinda Dykes Dreamweaver 8 Advanced book to help with setting this up. The bindings appear to be in place but when I attach the XSLT fragment to the XML document and preview, it displays the binding instructions(page/SpecialCollections/Collection/LouiseFortuneHall/Location/Title) and not the elements from the source tree. Here is what the code looks like:
<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="HallCollection1.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/"><table width="85%" border="1" cellpadding="2">
<xsl:for-each select="page/SpecialCollections/Collection/LouiseFortuneHall/Location ">
<tr>
<th scope="row">Title</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Title</td>
<td> </td>
</tr>
<tr>
<th scope="row">Subject</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Subject</td>
<td> </td>
</tr>
<tr>
<th scope="row">Description</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Description</td>
<td> </td>
</tr>
<tr>
<th scope="row">Type</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Type</td>
<td> </td>
</tr>
<tr>
<th scope="row">Source</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Source</td>
<td> </td>
</tr>
<tr>
<th scope="row">Creator</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Creator</td>
<td> </td>
</tr>
<tr>
<th scope="row">Rights</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Rights</td>
<td> </td>
</tr>
<tr>
<th scope="row">Date</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Date</td>
<td> </td>
</tr>
<tr>
<th scope="row">Format</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Format</td>
<td> </td>
</tr>
<tr>
<th scope="row">Identifier</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/Identifier</td>
<td> </td>
</tr>
<tr>
<th scope="row">RightsHolder</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/RightsHolder</td>
<td> </td>
</tr>
<tr>
<th scope="row">AccrualMethod</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/AccrualMethod</td>
<td> </td>
</tr>
<tr>
<th scope="row">AccrualPeriodicty</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/AccrualPeriodicty</td>
<td> </td>
</tr>
<tr>
<th scope="row">AccrualPolicy</th>
<td>page/SpecialCollections/Collection/LouiseFortuneHall/Location/AccrualPolicy</td>
<td> </td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
This is the beginning of the document I am trying to format, a fragment from a much larger xml file for some archival material we are cataloging:
<?xml version="1.0"?>
<?xml-stylesheet href="HallCollection3.xsl" type="text/xsl"?>
<page>
<SpecialCollections>
<Collection>
<LouiseFortuneHall>
<Location ID='SB-B'>
<!--Documents related to the History of Damascus, focusing primarily on economic development in the 20th Century and various industrial enterprises in which George A. Hall (and presumably Louise Fortune Hall) were investors, officers and or stockholders-->
<Title File='SB-B1'>Letter From Bud Wright, Questions about Kettlefoot, Elliot Roosevelt</Title>
<Subject>"Kettlefoot Flannagan"</Subject>
<Subject>"Elliot Roosevelt"</Subject>
<Description>"Personal communication from L.F. Hall addressed to Bud and Martha Wright in response to letter from correspondents regarding visits by Eleanor Roosevelt to Southwest Virginia and other historical details related to Damascus and White Top.</Description>
<Type>Text</Type>
<Source>Hall Collection</Source>
<Coverage></Coverage>
<Creator></Creator>
<Publisher></Publisher>
<Rights></Rights>
<Date>1985-04-23</Date>
<Format>Draft</Format>
<Identifier></Identifier>
<RightsHolder>Washington County Public Library</RightsHolder>
<AccrualMethod>Donation</AccrualMethod>
<AccrualPeriodicty>Irregular</AccrualPeriodicty>
<AccrualPolicy>Active</AccrualPolicy>
If anyone can help I'd be truly obliged.
Will