Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

xml - Loading XSLT from Nextcloud

I am working with poetry creating several XML-TEI files that I export using a XSL Transformation file, located in one of my computers. Every time I need to work on XSLT I change the location of the XSL, because directories are not the same in my computers. Hence, I decided to upload my XSL to a cloud service, but I'm still struggling with it.

I've uploaded the XSL file to my own Nextcloud and I've installed nextcloud-sharing-path, forcing the sharing URL to show the file type. However, that didn't work out. Despite I use Nextcloud, I wouldn't mind trying other services.

This is the current header of my XML, pointing to the XSL through the nextcloud generated URL (which I cannot publish because of company copyright issues):

<?xml version="1.0" encoding ="UTF-8" standalone ="no" ?>
<?xml-stylesheet type="text/xsl" href="http://.........estilos.xsl"?>
<!DOCTYPE TEI SYSTEM "C:/Users/mgabo/Dropbox/XML/Doc/tei.dtd">

XSL header:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tei="http://www.tei-c.org/ns/1.0"
    exclude-result-prefixes="xs tei"
    version="1.0">
    <xsl:output method="html" encoding="UTF-8" indent="yes"/>

When using the Nextcloud public XSL, Firefox shows an "unknown error" (805303f4), Internet Explorer shows the XML without styles and Chrome just a blank window.

Thanks!

UPDATE: I didn't solve the problem yet, but at least I found a workaround. Atom Browser, an extension for Atom editor, does open the URL in my nextcloud server and makes possible to preview the file with styles.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...