Search found 11 matches
Search found 11 matches
• Page 1 of 1
- by Iwicka
- Tue Oct 24, 2017 5:17 pm
- Forum: General XML Questions
- Topic: Qualifying global elements
- Replies: 1
- Views: 1901
Qualifying global elements
Hello, I have a question about qualifying elements in the instance that are globally declared in the schema. I have the two following schemas: <xs:schema xmlns:L="HKJ" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="HKJ" elementFormDefault="unqualified...
- by Iwicka
- Mon Sep 11, 2017 11:43 am
- Forum: General XML Questions
- Topic: Tesing number of decimal digits in schematron
- Replies: 2
- Views: 2986
Re: Tesing number of decimal digits in schematron
Great, it works.
Helpful as always -= Thank you
Helpful as always -= Thank you
- by Iwicka
- Fri Sep 08, 2017 5:21 pm
- Forum: General XML Questions
- Topic: Tesing number of decimal digits in schematron
- Replies: 2
- Views: 2986
Tesing number of decimal digits in schematron
Hi, I have another interesting Schematron issue: I need to test that the numeric value should have not more than 3 decimal positions. The data type is xsd:decimal, so there may be also no decimal digits, which makes it more difficult to check (to me anyway). My XML is: <A> <measurement> <height>5.11...
- by Iwicka
- Mon Aug 07, 2017 7:41 pm
- Forum: General XML Questions
- Topic: Unique combination of element / attribute value in schematron
- Replies: 1
- Views: 2821
Unique combination of element / attribute value in schematron
Hi, I have a problem that seems to be quite common, but none of the examples I found, actually works for me. The rule needs to say that the combination of element and attribute value must beunique. There can be only one instance of a name per language, but the name can be the same for different lang...
- by Iwicka
- Thu Aug 03, 2017 6:17 pm
- Forum: XML Schemas
- Topic: Schematron - Counting number of elements+attributes
- Replies: 2
- Views: 4296
Re: Schematron - Counting number of elements+attributes
It finally works, Thank you Octavian!
- by Iwicka
- Thu Aug 03, 2017 1:57 pm
- Forum: XML Schemas
- Topic: Schematron - Counting number of elements+attributes
- Replies: 2
- Views: 4296
Schematron - Counting number of elements+attributes
Hi, I have a strange problem in schematron - I need to create a role that an element with certain attribute value should occur in the XML exactly once. I created the following rule, but it doesn't show an error when the number of elements with 'en' attributes value is more than 1. However, if I chan...
- by Iwicka
- Tue Jun 20, 2017 12:36 pm
- Forum: Common Problems
- Topic: Validating dates in schematron
- Replies: 1
- Views: 2403
Validating dates in schematron
Hi, I need to validate the following using schematron: date B must be at 1 day earlier than date A: Valid XML: <dateA>2011-05-11</dateA> <dateB>2011-05-10</dateB> Not valid XML: <dateA>2011-05-11</dateA> <dateB>2011-05-11</dateB> I created the following rule comparing the two dates: <sch:rule contex...
- by Iwicka
- Tue May 09, 2017 5:19 pm
- Forum: Common Problems
- Topic: Schermatron: matching element element content with other element name
- Replies: 1
- Views: 1470
Schermatron: matching element element content with other element name
Hi, I have the following XML document: <abc:root xmlns:abc="urn:xyz:abc" xmlns:hij="urn:xyz:def"> <element1>SomeName</element1> <element2> <element3>SomeText</element3> <hij:element4> <someMoreElements/> </hij:element4> </element2> </abc:root> and need to write a schematron asser...
- by Iwicka
- Fri Nov 29, 2013 6:01 pm
- Forum: General XML Questions
- Topic: How to test in Schematron: element value begins with
- Replies: 2
- Views: 4620
How to test in Schematron: element value begins with
Hi, I'm a beginner both in schematron and in xpath. I need to write an assertion testing that an element value always begins with a certain string if the attribute has a certain value: <communicationChannel communicationChannelCode="WEBSITE">http://www.oxygenxml.com</communicationChannel> ...
- by Iwicka
- Thu Nov 21, 2013 5:13 pm
- Forum: General XML Questions
- Topic: Schematron calculation tests for optional elements
- Replies: 2
- Views: 2939
Re: Schematron calculation tests for optional elements
Thank you! It really helps
- by Iwicka
- Thu Nov 21, 2013 4:08 pm
- Forum: General XML Questions
- Topic: Schematron calculation tests for optional elements
- Replies: 2
- Views: 2939
Schematron calculation tests for optional elements
Hi, I need to create set of Schematron rules testing calculations in an XML Invoice. The problem is that some of the tested elements are optional and my rules fail when the tested elements are mjissing. How do I specify something like: "test value if the element is present"? The XML instan...
Search found 11 matches
• Page 1 of 1
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