Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How do I do remote XML Translation in XSL? How do I do remote XML Translation in XSL?To: NULL Date: 10/15/2007 6:54:00 PM
I have a XML file on a remote server controlled by a third party. I
need to have XSL transform that XML file, yet I havent gotten this to
work so far:
Local XML:
<?xml-stylesheet type="text/xsl" href="adfare_jobclips.xsl"?>
<videos>
<copyright>this should not show up</copyright>
</videos>
XSL for Local XML that really points to a 3rd party XML:
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="http://
example.com/videos.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="text" encoding="utf-8"/>
<xsl:template match="/">
<xsl:variable name="XMLFile">http://example.com/videos.xml</
xsl:variable>
<xsl:for-each select="document($XMLFile)/videos">
[{"copyright": <xsl:value-of select="copyright"/>}]
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
