Coder Social home page Coder Social logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024

Original comment by jjc.jclark.com on 18 Oct 2008 at 10:39

  • Added labels: Module-Trang

from jing-trang.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024

Original comment by jjc.jclark.com on 22 Oct 2008 at 5:54

  • Added labels: Module-trang
  • Removed labels: Module-Trang

from jing-trang.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
"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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
[deleted comment]

from jing-trang.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
<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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.