|
Subject: [xsl] XPOINTER to HTML by XSL From: "NILESH PATEL" <jayganesh786@xxxxxxxxxxx> Date: Thu, 07 Mar 2002 08:07:08 +0000 |
************************ test_pointer.xml ************************ <?xml version="1.0" encoding="UTF-8" ?>
************************ attachment.xml ************************ <?xml version="1.0" encoding="UTF-8" ?>
<root>
<products region="SouthWest">
<product id="p1">
<prodid>V123049</prodid>
<name>Bendable Sunglasses</name>
<price>$30</price>
<quantity>1,030</quantity>
</product>
<product id="p2">
<prodid>C039890</prodid>
<name>Sports Wrist Watch</name>
<price>$60</price>
<quantity>1,430</quantity>
</product>
</products>
</root>************************ test_pointer.xsl ************************ <?xml version="1.0" encoding="UTF-8" ?>
<!--
Document : test_xpointer_ss
Created on : 06 March 2002
Author : npatel
Comment
purpose of transformation follows.
--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan">
<xsl:template match="test_xpointer">
<html>
<h1>Test of XPointers</h1>
<head /> <body>
<table border="2">
<xsl:for-each select="attachment">
<tr>
<td>
<xsl:variable name="doc-ref" select="document(@href)" /> </td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>************************ test_pointer.html ************************ <html xmlns:fo="http://www.w3.org/1999/XSL/Format"> <h1>Test of XPointers</h1> <head> </head> <body> <table border="2"> <tr> <td>p2</td> </tr> </table> </body> </html>
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How can i convert the var, Laura Jenkins | Thread | Re: [xsl] XPOINTER to HTML by XSL, Jeni Tennison |
| Re: [xsl] How can i convert the var, Mike Brown | Date | RE: [xsl] word wrap in a text strin, Andrew Welch |
| Month |