-
xml question
I try to use the document() function from Microsoft help, I link my xml file
to my xsl file and trying to produce the result (i.e <?xml-stylesheet type="text/xsl"
href='merge.xsl'?>
), however it does't display anything in the browser. Please help.
Here is xsl and xml file in Microsoft document:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<employee>
<xsl:apply-templates select="//employeeDoc"/>
</employee>
</xsl:template>
<xsl:template match="employeeDoc">
<xsl:copy-of select="document(@href)//employee"/>
</xsl:template>
</xsl:stylesheet>
------------------------------------
<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type="text/xsl" href='merge.xsl'?>
<employeeRefs>
<employeeDoc href="localEmployees1.xml"/>
</employeeRefs>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks