unparsed text
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 6
- Joined: Fri Aug 26, 2005 11:14 am
unparsed text
Im just trying to get the unparsed-text function to work with oxygen or anything for that matter but I just cant, can anyone help me please. I tried doing it this way:
and this way:
the first give this error:
and the second gives this error
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" version="2.0">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:value-of select="fn:unparsed-text('TF20050819.TXT', 'UTF-8')"
disable-output-escaping="yes"/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:value-of select="unparsed-text('TF20050819.TXT', 'UTF-8')"
disable-output-escaping="yes"/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Code: Select all
The URI http://www.w3.org/2005/02/xpath-functions does not identify an external Java class
Code: Select all
Error in expression unparsed-text('TF20050819.TXT', 'UTF-8'): Unknown system function: unparsed-text
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Hi,
The second version is the correct one but you need to do three more things:
When configuring the transformation scenario select in the combo Saxon8B as the desired XSLT processor.
Also please make sure that in the Preferences/XSLT Options page the Engine Used for XSLT 2.0 validation is Saxon8B and the "Allow calls on external functions" check is activated.
Regards, Radu.
The second version is the correct one but you need to do three more things:
When configuring the transformation scenario select in the combo Saxon8B as the desired XSLT processor.
Also please make sure that in the Preferences/XSLT Options page the Engine Used for XSLT 2.0 validation is Saxon8B and the "Allow calls on external functions" check is activated.
Regards, Radu.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Such a validation is not done automatically after applying XSLT stylesheets. Open the XSD in <oXygen/> and use the Validate action available on the toolbar.
Regards,
Sorin
Such a validation is not done automatically after applying XSLT stylesheets. Open the XSD in <oXygen/> and use the Validate action available on the toolbar.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
You can validate at transform time using the Saxon 8 SA transformer.
Regards,
Sorin
You can validate at transform time using the Saxon 8 SA transformer.
Regards,
Sorin
-
- Posts: 6
- Joined: Fri Aug 26, 2005 11:14 am
Hi there, I just downloaded the saxon8sa libraries and copied them into my plugins/oxygen/lib folder. And then I selected saxon8sa on all the drop downs I could get. Now what? I get a this error:
[/code]
Code: Select all
com.saxonica.validate.SchemaAwareConfiguration.setMultiThreading(Z)V
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Saxon SA 8.5 cannot be used in <oXygen/> 6.1 because Michael Kay changed the API. You have to wait until the 6.2 release in September. Use Saxon SA 8.4 in <oXygen/> 6.1. See
http://www.oxygenxml.com/forum/ftopic1222.html
Regards,
Sorin
Saxon SA 8.5 cannot be used in <oXygen/> 6.1 because Michael Kay changed the API. You have to wait until the 6.2 release in September. Use Saxon SA 8.4 in <oXygen/> 6.1. See
http://www.oxygenxml.com/forum/ftopic1222.html
Regards,
Sorin
-
- Posts: 6
- Joined: Fri Aug 26, 2005 11:14 am
Great, thank sorin, your a big help. Now that I copied that saxon8sa jars into the lib folder, im getting a wierd errror on the same scenario:
what is wrong?
Code: Select all
net.sf.saxon.Configuration.getDocumentValidator(Lnet/sf/saxon/event/Receiver;Ljava/lang/String;
Lnet/sf/saxon/om/NamePool;ILnet/sf/saxon/type/SchemaType;)Lnet/sf/saxon/event/Receiver;
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
You copied the Saxon 8.4 SA jars into the [oXygen-install-dir]/lib folder, restarted <oXygen/>, set Saxon SA in the transformation scenario, execute the scenario and get that error ?
Regards,
Sorin
You copied the Saxon 8.4 SA jars into the [oXygen-install-dir]/lib folder, restarted <oXygen/>, set Saxon SA in the transformation scenario, execute the scenario and get that error ?
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service