Search found 2095 matches

by george
Tue Aug 09, 2011 9:08 am
Forum: Common Problems
Topic: no implementation available for "http://purl.oclc.org/dsdl/s
Replies: 9
Views: 5845

Re: no implementation available for "http://purl.oclc.org/dsdl/s

No, we do not have such a script.
oXygen performs those steps but it does that directly in Java and once a schema is compiled as an XSLT oXygen reuses that until it detects that the schema file was changed or the user triggers the "Refresh cache and validate" action.

Best Regards,
George
by george
Mon Aug 08, 2011 8:55 pm
Forum: Common Problems
Topic: no implementation available for "http://purl.oclc.org/dsdl/s
Replies: 9
Views: 5845

Re: no implementation available for "http://purl.oclc.org/dsdl/s

The ISO Schematron implementation from oXygen is available in [oXygen]/frameworks/schematron/impl and there is a readme.txt file that describes the processing. All you need is to get that in a script of your choice and execute it from command line. Of course you can use also the skeleton implementat...
by george
Thu Jul 28, 2011 4:19 pm
Forum: General NVDL Issues
Topic: unvalid NVDL - dtd schema type
Replies: 9
Views: 17622

Re: unvalid NVDL - dtd schema type

Hi Matthieu, The NVDL script works very similar with how XSLT works. Only that it is applied on element and attribute sections instead of elements and attributes. When you say useMode="someMode" in some action then the subsections will be processed with the rules from that mode, exactly ho...
by george
Tue Jul 26, 2011 5:36 pm
Forum: oNVDL Related Issues
Topic: oNVDL and schematron : Unknown XPath version 0
Replies: 2
Views: 12735

Re: oNVDL and schematron : Unknown XPath version 0

Please make sure you run the latest 12.2 build, 2011062910 http://www.oxygenxml.com/download_oxygenxml_editor.html This build fixes a few issues, including the problem of calling a Schematron schema from an NVDL script that was a side effect of the upgrade to the latest Saxon: http://www.oxygenxml.c...
by george
Tue Jul 26, 2011 9:23 am
Forum: General NVDL Issues
Topic: unvalid NVDL - dtd schema type
Replies: 9
Views: 17622

Re: unvalid NVDL - dtd schema type

The NVDL script will never break a text node from its parent element to validate the text with a different schema. In the end the result of the NVDL validation is equivalent with splitting the document in a few documents and apply the corresponding validation actions on them. As these are XML docume...
by george
Fri Jul 22, 2011 12:50 pm
Forum: General NVDL Issues
Topic: unvalid NVDL - dtd schema type
Replies: 9
Views: 17622

Re: unvalid NVDL - dtd schema type

Hi, I do not know if NVDL specifically excludes DTDs and one NVDL implementation, JNVDL supports DTDs. The oNVDL/Jing implementation does not support DTDs. You can define a Relax NG schema that includes the XHTML schema and redefines the start pattern to be a choice of the patterns that allow the el...
by george
Thu Jul 21, 2011 5:39 pm
Forum: General NVDL Issues
Topic: unvalid NVDL - dtd schema type
Replies: 9
Views: 17622

Re: unvalid NVDL - dtd schema type

The NVDL implementation that we use (initially developed as part of the oNVDL project and now contributed to Jing) does not support DTDs as schema language inside an NVDL script. This works only with XML Schema 1.0, Relax NG (compact and XML) and pre-ISO Schematron. Please use the Relax NG schema fo...
by george
Tue Jul 19, 2011 11:00 am
Forum: XML Schemas
Topic: Convert XSD file to DTD
Replies: 1
Views: 7159

Re: Convert XSD file to DTD

Hi, oXygen does not provide support for converting from XML Schema to DTD. It includes Trang for the schema conversion support and that allows as inout any of * a set of XML documents * DTD * Relax NG (XML or compact) and as output * XML Schema * DTD * Relax NG (XML or compact) Best Regards, George
by george
Mon Jul 11, 2011 3:38 pm
Forum: XML Schemas
Topic: Restricting to a list
Replies: 8
Views: 7647

Re: Restricting to a list

You can use identity constraints to enforce that. Here it is a working sample test.xsd <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="root"> <xs:complexT...
by george
Thu Jul 07, 2011 11:11 pm
Forum: XML Schemas
Topic: Xerces cos-nonambig schema validation error
Replies: 3
Views: 8696

Re: Xerces cos-nonambig schema validation error

You may want to review also http://www.w3.org/TR/xml/#determinism and Tim Bray comments on this http://www.xml.com/axml/notes/Determinism.html So basically the spec says that if ambiguous content models are created some parsers may report an error. As an alternative you may want to explore also Rela...
by george
Thu Jul 07, 2011 4:59 pm
Forum: XML Schemas
Topic: Xerces cos-nonambig schema validation error
Replies: 3
Views: 8696

Re: Xerces cos-nonambig schema validation error

Hello, Please see http://www.w3.org/TR/xmlschema-1/#cos-nonambig If you have a model like (A | C)+ | (B | C)+ then when a parser will encounter C as the first element it will not be able to match that against only one particle because both C will from your model will match it so the model is ambiguo...
by george
Thu Jun 30, 2011 9:49 am
Forum: Feature Request
Topic: [epub] Reorder playorder in toc.ncx
Replies: 12
Views: 15285

Re: [epub] Reorder playorder in toc.ncx

The solution presented here takes a TOC file and it adds playOrder values in their natural/document order. It does not take into account any of the existing values. All you need is to apply the XSLT transformation on a NCX file with broken playOrder values and you will get as result the NCX file wit...
by george
Wed Jun 29, 2011 10:00 pm
Forum: Common Problems
Topic: XSLT import files
Replies: 5
Views: 3101

Re: XSLT import files

If you do not want to have automatic validation you can disable it from Options->Preferences -- Editor / Document Checking, uncheck the "Enable automatic validation" option.
by george
Wed Jun 29, 2011 7:13 pm
Forum: Common Problems
Topic: XSLT import files
Replies: 5
Views: 3101

Re: XSLT import files

You cannot turn that checking off, none of the existing XSLT processors offer such an option. However, as I said before, you can have a catalog mapping that to an empty stylesheet. In your case you can use the support for resolving a resource based on a suffix, like below: <catalog xmlns="urn:o...
by george
Wed Jun 29, 2011 12:55 pm
Forum: Feature Request
Topic: [epub] Reorder playorder in toc.ncx
Replies: 12
Views: 15285

Re: [epub] Reorder playorder in toc.ncx

I am afraid you want something else. This stylesheet fixes the values for the playOrder attribute, it does not fix broken names. oXygen having EpubChek validation integrated will show you the broken links, if any, and you will be able to use oXygen to edit the files inside an EPUB to correct these p...
by george
Wed Jun 29, 2011 12:47 pm
Forum: Feature Request
Topic: [epub] Split xhtml file at headings
Replies: 8
Views: 6037

Re: [epub] Split xhtml file at headings

Just change the href on result-document as below: <xsl:result-document doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes" href="{document-uri(/)}_{$filename}.xhtml"> Best Regards, George
by george
Wed Jun 29, 2011 6:59 am
Forum: Common Problems
Topic: XSLT import files
Replies: 5
Views: 3101

Re: XSLT import files

What do you mean?
In case an import refers to a location where you do not have that XSLT then you can use an XML Catalog to map that URI to another one that points to the respective XSLT file.

Best Regards,
George
by george
Fri Jun 24, 2011 12:11 am
Forum: Feature Request
Topic: [epub] Split xhtml file at headings
Replies: 8
Views: 6037

Re: [epub] Split xhtml file at headings

Here it is a stylesheet that splits the initial file creating two files in the sample case, file1.xhtml and file2.xhtml with the desired content: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0&qu...
by george
Tue Jun 21, 2011 12:05 pm
Forum: Feature Request
Topic: [epub] Split xhtml file at headings
Replies: 8
Views: 6037

Re: [epub] Split xhtml file at headings

Please provide a sample XHTML file and describe the desired result and I will try to show you how that can be obtained with XSLT.

Best Regards,
George
by george
Tue Jun 21, 2011 10:21 am
Forum: Feature Request
Topic: [epub] Reorder playorder in toc.ncx
Replies: 12
Views: 15285

Re: [epub] Reorder playorder in toc.ncx

In that case the following XSLT 2.0 stylesheet will provide the correct values: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/" version="2.0"> <x...
by george
Mon Jun 20, 2011 2:44 pm
Forum: Feature Request
Topic: [epub] Split xhtml file at headings
Replies: 8
Views: 6037

Re: [epub] Split xhtml file at headings

There is no built-in function for that but what you want can be easily achieved with XSLT 2.0 and oXygen has full support for that.

Best Regards,
George
by george
Tue Jun 14, 2011 2:33 pm
Forum: Feature Request
Topic: [epub] Reorder playorder in toc.ncx
Replies: 12
Views: 15285

Re: [epub] Reorder playorder in toc.ncx

You can pass the NCX file though a stylesheet that assigns playOrder sequentially, like the fixPlayorder.xsl below: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Recursive copy templ...
by george
Tue Jun 07, 2011 5:37 pm
Forum: Common Problems
Topic: Leading Spaces for NMTOKENs Do Not Produce an Error in oXyge
Replies: 3
Views: 2290

Re: Leading Spaces for NMTOKENs Do Not Produce an Error in oXyge

Check the definition for collapse: collapse After the processing implied by replace, contiguous sequences of #x20's are collapsed to a single #x20, and leading and trailing #x20's are removed. That means the whitespace at the beginning and at the end is removed while for the one in the middle remain...
by george
Tue Jun 07, 2011 9:52 am
Forum: Common Problems
Topic: Leading Spaces for NMTOKENs Do Not Produce an Error in oXyge
Replies: 3
Views: 2290

Re: Leading Spaces for NMTOKENs Do Not Produce an Error in oXyge

Hello,

The whitespace facet for NMTOKEN is collapse and thus the leading and trailing spaces are removed before validation:
http://www.w3.org/TR/xmlschema-2/#rf-whiteSpace

Best Regards,
George
by george
Mon May 30, 2011 8:34 am
Forum: Feature Request
Topic: Generate schema documentation for RNG
Replies: 5
Views: 4284

Re: Generate schema documentation for RNG

This functionality does not exist yet.
There is nothing particularly difficult but it is not a trivial task.

Best Regards,
George
by george
Mon May 30, 2011 8:27 am
Forum: XML Schemas
Topic: E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a va
Replies: 1
Views: 5505

Re: E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a va

That is not allowed for xs:integer, see
http://www.w3.org/TR/xmlschema-2/#integer

You may want to define that type as a union between integer and a restriction of string that allows only unbounded.

Best Regards,
George
by george
Wed May 11, 2011 8:30 am
Forum: XML Schemas
Topic: XSD from XML with multiple rows
Replies: 1
Views: 3667

Re: XSD from XML with multiple rows

Hi, You can pass the XML file though a simple XSLT like below that will remove the Value attribute, then pass that to the XML Schema instance generator: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="...
by george
Mon May 09, 2011 5:11 pm
Forum: oNVDL Related Issues
Topic: Relax NG Pluggable Datatype Libraries
Replies: 5
Views: 12126

Re: Relax NG Pluggable Datatype Libraries

Do you have that datatype library in a compiled form (jar) ? If not, then probably that is the problem... the classes from that should be accessible to oXygen - for the standalone version you can just drop the jar in the oXygen lib folder, for the Eclipse plugin you need that plus you need to edit a...
by george
Wed May 04, 2011 12:31 pm
Forum: Other Issues
Topic: How get composite XSLT stylesheet with all includes?
Replies: 1
Views: 1572

Re: How get composite XSLT stylesheet with all includes?

Hi Steve, We do not provide in oXygen an action to get a "resolved" stylesheet. We did not had any such requests until now. We do provide a similar action for XML Schema. On the other hand for XSLT development oXygen offers many functions that should cover the usecase you will have with cr...
by george
Mon May 02, 2011 5:21 pm
Forum: Common Problems
Topic: Oxygen overwrote xsl script during debugging session
Replies: 7
Views: 3436

Re: Oxygen overwrote xsl script during debugging session

Do not worry... only trial licenses are expiring, all the other licenses are permanent. If you are referring to the maintenance pack then you should know that you need that further only to access following major versions (that is 13.0, etc.), all version 12.x releases work with the same license key ...