
Hello, I have XML-files with "-quotes in the content of elements. If I open such a file, Oxygen always displays them as HTML-codes "e; Is it possible to change that behavior, so that the original " are shown? Thanks. Best regards, Tom -- Thomas Zastrow Seminar fuer Sprachwissenschaft Universitaet Tuebingen http://www.sfs.uni-tuebingen.de/dialectometry/ Wilhelm Str. 19 D-72074 Tübingen Tel.: 07071/29-73968 Fax: 07071/29-5214

Hello, Do you mean you have an XML file containing <a>"</a> you open it in oXygen from menu File -> Open and the editor panel displays the following content ? <a>"e;</a> I cannot reproduce that. Can you post a sample file ? Regards, Sorin Thomas Zastrow wrote:
Hello,
I have XML-files with "-quotes in the content of elements. If I open such a file, Oxygen always displays them as HTML-codes "e;
Is it possible to change that behavior, so that the original " are shown?
Thanks.
Best regards,
Tom

Sorin Ristache wrote:
Hello,
Do you mean you have an XML file containing
<a>"</a>
you open it in oXygen from menu File -> Open and the editor panel displays the following content ?
<a>"e;</a>
I cannot reproduce that. Can you post a sample file ?
Sorry, the mistake was already in the file in the database ... I'm very sorry for that. Best, Tom -- Thomas Zastrow Seminar fuer Sprachwissenschaft Universitaet Tuebingen http://www.sfs.uni-tuebingen.de/dialectometry/ Wilhelm Str. 19 D-72074 Tübingen Tel.: 07071/29-73968 Fax: 07071/29-5214

Dear all, Following an example In Michael Kay's book, I've got a rudimentary xsl transformation (appended below) for parsing a plain-text file. This works fine when invoked from the command line thus: java -jar saxon8.jar -it main unparsed-text-test.xsl input-uri=temptesting using the -it (initial template) switch. I can't figure out how to make this happen from within oXygen. Running the style sheet from within oX gets me this error: SystemID: /Users/jjc/Desktop/temptesting Location: 1:1 Description: Content is not allowed in prolog. oXygen insists on expecting the input file to be well formed XML. I'm sure I'm missing something obvious. Any help? Jon <?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" version="2.0"> <xsl:param name="input-uri" select="temptesting" as="xs:string"/> <xsl:output indent="yes" method="xml"/> <xsl:template name="main" > <xsl:variable name="in" select="unparsed-text($input-uri, 'UTF-8')"/> <table> <xsl:analyze-string select="$in" regex="\n"> <xsl:non-matching-substring> <row> <xsl:for-each select="tokenize(., ': ')"> <xsl:variable name="chunk" select="."/> <cell> <xsl:value-of select="$chunk"/> </cell> </xsl:for-each> </row> </xsl:non-matching-substring> </xsl:analyze-string> </table> </xsl:template> </xsl:stylesheet> __________ J.J. Crump Dept. of History 353560 University of Washington Seattle, WA. 98195

Dear Jon, In the current version of oXygen it is not possible to set the initial template or the initial mode for an XSLT 2.0 transformation as you can do in the command line. I logged this as an enhancement request for a future version. To get the same effect in oXygen as from the command line you have to add the following template in your stylesheet: <xsl:template match="/"> <xsl:call-template name="main"/> </xsl:template> Also you have to set a dummy XML file as the XML URL parameter of the transformation scenario. Best regards, Sorin Jon Crump wrote:
Dear all,
Following an example In Michael Kay's book, I've got a rudimentary xsl transformation (appended below) for parsing a plain-text file. This works fine when invoked from the command line thus:
java -jar saxon8.jar -it main unparsed-text-test.xsl input-uri=temptesting
using the -it (initial template) switch. I can't figure out how to make this happen from within oXygen. Running the style sheet from within oX gets me this error:
SystemID: /Users/jjc/Desktop/temptesting Location: 1:1 Description: Content is not allowed in prolog.
oXygen insists on expecting the input file to be well formed XML. I'm sure I'm missing something obvious. Any help?
Jon
<?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" version="2.0">
<xsl:param name="input-uri" select="temptesting" as="xs:string"/> <xsl:output indent="yes" method="xml"/>
<xsl:template name="main" > <xsl:variable name="in" select="unparsed-text($input-uri, 'UTF-8')"/> <table> <xsl:analyze-string select="$in" regex="\n"> <xsl:non-matching-substring> <row> <xsl:for-each select="tokenize(., ': ')"> <xsl:variable name="chunk" select="."/> <cell> <xsl:value-of select="$chunk"/> </cell> </xsl:for-each> </row> </xsl:non-matching-substring> </xsl:analyze-string> </table> </xsl:template>
</xsl:stylesheet>
__________ J.J. Crump Dept. of History 353560 University of Washington Seattle, WA. 98195
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Sorin, Many thanks for your response, that worked fine. oXygen is my preferred platform for development so it's good to have this work-around. Let me further register another request for RDF/RDFS/OWL support, and, idealy, some support for n3 RDF notation; maybe with hooks to RDFlib or jena or something like that. Keep up the good work, and thanks again. Jon On Wed, 17 Jan 2007, Sorin Ristache wrote:
Dear Jon,
In the current version of oXygen it is not possible to set the initial template or the initial mode for an XSLT 2.0 transformation as you can do in the command line. I logged this as an enhancement request for a future version. To get the same effect in oXygen as from the command line you have to add the following template in your stylesheet:
<xsl:template match="/"> <xsl:call-template name="main"/> </xsl:template>
Also you have to set a dummy XML file as the XML URL parameter of the transformation scenario.
Best regards, Sorin

Hello Jon, Thank you for your request. We will study the possibility of adding RDF/RDFS/OWL support in oXygen. Regards, Sorin Jon Crump wrote:
Let me further register another request for RDF/RDFS/OWL support, and, idealy, some support for n3 RDF notation; maybe with hooks to RDFlib or jena or something like that.

Dear Sorin, I want to add +1 to this enhancement request Is it planned to be effective soon ? Regards, Xmlizer On 1/17/07, Sorin Ristache <sorin@oxygenxml.com> wrote:
Dear Jon,
In the current version of oXygen it is not possible to set the initial template or the initial mode for an XSLT 2.0 transformation as you can do in the command line. I logged this as an enhancement request for a future version. To get the same effect in oXygen as from the command line you have to add the following template in your stylesheet:
<xsl:template match="/"> <xsl:call-template name="main"/> </xsl:template>
Also you have to set a dummy XML file as the XML URL parameter of the transformation scenario.
Best regards, Sorin
Jon Crump wrote:
Dear all,
Following an example In Michael Kay's book, I've got a rudimentary xsl transformation (appended below) for parsing a plain-text file. This works fine when invoked from the command line thus:
java -jar saxon8.jar -it main unparsed-text-test.xsl input-uri=temptesting
using the -it (initial template) switch. I can't figure out how to make this happen from within oXygen. Running the style sheet from within oX gets me this error:
SystemID: /Users/jjc/Desktop/temptesting Location: 1:1 Description: Content is not allowed in prolog.
oXygen insists on expecting the input file to be well formed XML. I'm sure I'm missing something obvious. Any help?
Jon
<?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" version="2.0">
<xsl:param name="input-uri" select="temptesting" as="xs:string"/> <xsl:output indent="yes" method="xml"/>
<xsl:template name="main" > <xsl:variable name="in" select="unparsed-text($input-uri, 'UTF-8')"/> <table> <xsl:analyze-string select="$in" regex="\n"> <xsl:non-matching-substring> <row> <xsl:for-each select="tokenize(., ': ')"> <xsl:variable name="chunk" select="."/> <cell> <xsl:value-of select="$chunk"/> </cell> </xsl:for-each> </row> </xsl:non-matching-substring> </xsl:analyze-string> </table> </xsl:template>
</xsl:stylesheet>
__________ J.J. Crump Dept. of History 353560 University of Washington Seattle, WA. 98195
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello, Thank you for the vote. We have the request logged in our issue tracking system but it is not scheduled for the next version of oXygen. Regards, Sorin mozer wrote:
Dear Sorin,
I want to add +1 to this enhancement request
Is it planned to be effective soon ?
Regards,
Xmlizer
On 1/17/07, Sorin Ristache <sorin@oxygenxml.com> wrote:
Dear Jon,
In the current version of oXygen it is not possible to set the initial template or the initial mode for an XSLT 2.0 transformation as you can do in the command line. I logged this as an enhancement request for a future version. To get the same effect in oXygen as from the command line you have to add the following template in your stylesheet:
<xsl:template match="/"> <xsl:call-template name="main"/> </xsl:template>
Also you have to set a dummy XML file as the XML URL parameter of the transformation scenario.
Best regards, Sorin
participants (5)
-
Jon Crump
-
mozer
-
Sorin Ristache
-
Syd Bauman
-
Thomas Zastrow