What are these ???

Here should go questions about transforming XML with XSLT and FOP.
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

What are these ???

Post by sderrick »

I applied a transform I haven't used a while, this is an xml to xml transform.

For the first time I am now getting  inserted after every opening tag????

here is the original

Code: Select all


           <publicationStmt>
<publisher>The Writings of Mary Baker Eddy</publisher>
</publicationStmt>
<sourceDesc>
<p>Digital edition derived from Windows Concord markup.</p>
<p>
<msDesc>
<msIdentifier/>
<physDesc>
<objectDesc>
<p>
A complete description of the TEI structure used in this docment can be found
in the associated books/doc/"tei-Unity.doc" file.
</p>
here is the result doc

Code: Select all



<publicationStmt>&#x1e;&#x1e;&#x1e;
<publisher>&#x1e;&#x1e;&#x1e;The Writings of Mary Baker Eddy</publisher>
</publicationStmt>
<sourceDesc>&#x1e;&#x1e;&#x1e;
<p>&#x1e;&#x1e;&#x1e;Digital edition derived from Windows Concord markup.</p>
<p>&#x1e;&#x1e;&#x1e;
<msDesc>&#x1e;&#x1e;&#x1e;
<msIdentifier/>
<physDesc>&#x1e;&#x1e;&#x1e;
<objectDesc>&#x1e;&#x1e;&#x1e;
<p>&#x1e;&#x1e;&#x1e;
A complete description of the TEI structure used in this docment can be found
in the associated books/doc/"tei-Unity.doc" file.
</p>
what am I doing wrong?
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by sderrick »

A little more information.

If I apply the transform in the debugger I get the &#x1e;'s inserted.

If I apply the transform through the Document/Transformation/...

I don't get the &#x1e;'s....

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by adrian »

Hello,
sderrick wrote:If I apply the transform through the Document/Transformation/...

I don't get the &#x1e;'s....
So what happens if you start the debugging from Document -> Transformation -> Debug scenario ?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by sderrick »

I still get them!!! This is somewhat irritating.

here's another sample of the fubar output

Code: Select all


    <teiHeader>&#x1e;&#x1e;&#x1e;
<fileDesc>&#x1e;&#x1e;&#x1e;
<titleStmt>&#x1e;&#x1e;&#x1e;
<title>&#x1e;&#x1e;&#x1e;Pulpit and Press</title>
<author>&#x1e;&#x1e;&#x1e;Mary Baker Eddy</author>
<respStmt>&#x1e;&#x1e;&#x1e;
<name>&#x1e;&#x1e;&#x1e;Scott Derrick</name>
<resp>&#x1e;&#x1e;&#x1e;conversion to TEI markup</resp>
</respStmt>
</titleStmt>
<publicationStmt>&#x1e;&#x1e;&#x1e;
<publisher>&#x1e;&#x1e;&#x1e;The Writings of Mary Baker Eddy</publisher>
</publicationStmt>
here's a sample of running the same stylesheet, normally(either in Oxygen[not in the debugger] or on the command line using saxon)

Code: Select all


    <teiHeader>
<fileDesc>
<titleStmt>
<title>Pulpit and Press</title>
<author>Mary Baker Eddy</author>
<respStmt>
<name>Scott Derrick</name>
<resp>conversion to TEI markup</resp>
</respStmt>
</titleStmt>
<publicationStmt>
<publisher>The Writings of Mary Baker Eddy</publisher>
</publicationStmt>
It would be nice to find a work around...

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by adrian »

Hi,

Please export your options which include the transformation scenarios(Options -> Export Global Options) and send the exported file to our support email address: support@oxygenxml.com

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
yamahito
Posts: 11
Joined: Fri Nov 11, 2011 3:39 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by yamahito »

Hi Adrian,

What was the result of this query? I am experiencing the same symptoms (inclusion of the same illegal characters when running through debugger, expected output when using transformation scenario).

I believe that in my case it is tied to the use of saxon:character-representation='hex' on xsl:output.

I am using Saxon PE without DTD validation.

Cheers,
Tom
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by adrian »

Hi,

After sending us the options file there was no further follow-up, so no conclusion.

I have asked the previous person(but did not get a response) if there are any <xsl:output or <xsl:character-map elements in the stylesheet.
My guess is one of these elements could be triggering that behaviour.

Have you tried removing saxon:character-representation='hex' ?
Did it make a difference?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
yamahito
Posts: 11
Joined: Fri Nov 11, 2011 3:39 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by yamahito »

Yes, removing the 'hex' option bypasses the bug.

In my case that's fine for debugging (or I just live with the invalid result), but the 'hex' option needs to be there when actually run.

So it's not a show-stopper or anything, just a minor annoyance.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: What are these &#x1e;&#x1e;&#x1e;???

Post by adrian »

Hi,

We could not reproduce this with saxon:character-representation='hex'.

What version of Oxygen(Help -> About) and what edition and version of Saxon(engine combo) were you using?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply