With in-depth learning of the integrated Spry functions in Dreamweavse cs3, we have learned and mastered some functional modules of the Spry framework, including the easy display of XML data into HTML pages through Dreamweavse cs3 visualization operations.
Of course, when it comes to how to insert XML data into displays into HTML pages, the data island is usually immediately thought of. for example:
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
Of course, it's OKDisplay XML to page using XSLTHowever, now using Dreamweaver CS3 integrated Spry function, you can easily embed XML data into HTML, and also reorder XML data, timed data updates and refresh-free displays, etc. - standard Spry AJAX applications.
1. XML data file:
/test/spry/
2. Add "Spry XML Date Set" in Dreamweaver CS3
3. Browse and select XML data source in the dialog box that opens, then click "Get schema" to extract the XML node display. Select the node in "Row element" and automatically obtain the "XPath" (note: when different XPaths are selected, the information that can be displayed in the end is also different). Select the reference node for classification sorting in the "Sort" column, such as selecting descending or ascending time. In "Options", you can set the automatic update of XML data and display without refresh mechanism.
4. After completing the binding of XML data, the XML data (loop) can be displayed in the HTML page.
Generally speaking, it is easy to get started. Looking back at the [Code] view, it is also very concise to see the code. All the work is completed by the Spry framework.
Test address:/test/spry/
However, the current issues and considerations are:
1. The data source of Chinese XML nodes cannot be well supported
2. The hyperlink displayed by XML in HTML seems to be unable to open.
3. The problem of remote XML data source needs to be solved, which is a function similar to RSS aggregation.
Of course, when it comes to how to insert XML data into displays into HTML pages, the data island is usually immediately thought of. for example:
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
Of course, it's OKDisplay XML to page using XSLTHowever, now using Dreamweaver CS3 integrated Spry function, you can easily embed XML data into HTML, and also reorder XML data, timed data updates and refresh-free displays, etc. - standard Spry AJAX applications.
1. XML data file:
<?xml version="1.0" encoding="utf-8"?> <mysite> <site> <name>CNBRUCE</name> <url></url> <desc>cnbruce's blog</desc> <atime>2003</atime> </site> <site> <name>DW8</name> <url>http://</url> <desc>About dreamweaver and web</desc> <atime>2006</atime> </site> <site> <name>164</name> <url>http://</url> <desc>Music Blog</desc> <atime>2005</atime> </site> </mysite> |
/test/spry/
2. Add "Spry XML Date Set" in Dreamweaver CS3
3. Browse and select XML data source in the dialog box that opens, then click "Get schema" to extract the XML node display. Select the node in "Row element" and automatically obtain the "XPath" (note: when different XPaths are selected, the information that can be displayed in the end is also different). Select the reference node for classification sorting in the "Sort" column, such as selecting descending or ascending time. In "Options", you can set the automatic update of XML data and display without refresh mechanism.
4. After completing the binding of XML data, the XML data (loop) can be displayed in the HTML page.
Generally speaking, it is easy to get started. Looking back at the [Code] view, it is also very concise to see the code. All the work is completed by the Spry framework.
Test address:/test/spry/
However, the current issues and considerations are:
1. The data source of Chinese XML nodes cannot be well supported
2. The hyperlink displayed by XML in HTML seems to be unable to open.
3. The problem of remote XML data source needs to be solved, which is a function similar to RSS aggregation.