Comments (10)
Original comment by jjc.jclark.com
on 18 Oct 2008 at 10:39
- Added labels: Module-Trang
from jing-trang.
Original comment by jjc.jclark.com
on 22 Oct 2008 at 5:54
- Added labels: Module-trang
- Removed labels: Module-Trang
from jing-trang.
I'd like to make a Maven plugin.
It would be much easier if Driver's "doMain" [1] method was public. I can't use
"main" cause that will call System.exit(_).
Or maybe I'm just not seeing the correct way to access Trang in an embedded
flow. Am
I missing something?
Thanks,
Luke
[1]
http://code.google.com/p/jing-trang/source/browse/tags/V20081028/mod/trang/src/m
ain/com/thaiopensource/relaxng/translate/Driver.java#45
Original comment by [email protected]
on 11 Dec 2008 at 7:14
from jing-trang.
Is that really going to be enough? For example, aren't you going to want to
have
errors reported via exceptions rather than being printed to System.err?
I would copy and paste for now. Then when you're done and I've done an Ant
Task we
can see whether there is any common functionality that can be factored out.
Original comment by jjc.jclark.com
on 12 Dec 2008 at 12:34
from jing-trang.
"For example, aren't you going to want to have errors reported via exceptions
rather
than being printed to System.err?"
That's a good point.
I was just hoping that the console-driven flow and the plugin flow could go
through
the same facade. That would help ensure that the same set of functionality was
offered through the different routes.
"we can see whether there is any common functionality that can be factored out."
Sounds good.
Original comment by [email protected]
on 14 Dec 2008 at 8:11
from jing-trang.
I was able to reuse and update the following ant task for trang:
http://www.dehora.net/code/trang/trangtask.html
It was coded against trang in 2003.
Making it work with version r2341 in svn was just a matter of adding a
parameter (sax
resolver) in TrangTask when it calls InputFormat.load().
It handles exception properly (they're not just printed).
Seems to work for my purposes (rnc->xsd and rnc->rng). However I have not done
any
further testing...
Diff file attached.
Original comment by fmjrey
on 26 Mar 2010 at 12:19
Attachments:
from jing-trang.
Here's a TrangTask.java derived from
http://www.dehora.net/code/trang/trangtask.html
Replace TrangTask.jave from above download with attached file.
The new class:
- works with r2353
- adds a forceRebuild attribute
- adds a catalog attribute as described in issue #133
Original comment by fmjrey
on 31 Dec 2010 at 9:40
Attachments:
from jing-trang.
looks like a couple results turn up when searching for Maven plugins:
http://jarvana.com/jarvana/search?search_type=class&java_class=Trang*
Original comment by [email protected]
on 8 Feb 2011 at 4:06
from jing-trang.
[deleted comment]
from jing-trang.
<property name="trang.dir" location="WebContent/WEB-INF/lib" />
<property name="source.dir" location="WebContent/WEB-INF/schema/samples" />
<property name="schema.dir" location="WebContent/WEB-INF/schema/xsd" />
<target name="generate" description="generates order schema">
<delete dir="${schema.dir}" />
<mkdir dir="${schema.dir}" />
<java jar="${trang.dir}/trang-20091111.jar" fork="true">
<arg value="${source.dir}/client-request.xml" />
<arg value="${schema.dir}/client-request.xsd" />
</java>
<java jar="${trang.dir}/trang-20091111.jar" fork="true">
<arg value="${source.dir}/client-response.xml" />
<arg value="${schema.dir}/client-response.xsd" />
</java>
</target>
Original comment by [email protected]
on 18 Jun 2014 at 3:30
from jing-trang.
Related Issues (20)
- jing hangs on Docbook 5 document with DOCTYPE containing only ENTITY
- NullPointerException running trang 20131210 HOT 2
- conflicting ID-types in wildcard pattern HOT 1
- Not able to validate the Length of input string with jing.
- Approximate one or more on mixed content to zero or more when converting to DTD HOT 1
- Element declarations appear twice in the DTD output
- Build fails with java 1.8 HOT 3
- variable reference in <diagnostic> element is not expanded properly.
- Line numbers missing for validation errors when using Schematron and Saxon 9 HE
- Test failing on Windows
- Trang picks reserved/forbidden namespace prefix for certain namespace URIs
- NullPointerExceptions occur on latest source files
- Discussion about allowed patterns for ID data types (and for NCNames in general)
- Invalid schema generated from XML input containing recursive type
- Feature request: various options controlling generation of local vs. global declarations
- trangs: allow specifying the output line length HOT 1
- The two provided RegexEngine implementations are NOT equivalent
- getting ConcurrentModificationException while converting one xml to xsd HOT 3
- Input in the form of InputStream
- Migrate to GitHub HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jing-trang.