You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Holbrook, R Cody (Cody)" <rc...@avaya.com> on 2004/02/18 19:13:56 UTC
One-to-one file mapping
Hello all,
Currently, I'm using ant with castor and javadoc to take a big documentation XML, turn it into a big stylesheet (XSL), which then processes a group of XSDs into a new group of XSDs with documentation. Here are my targets:
<target name="create-xsl" depends="create-src" description="Create xsl from javadoc xml">
<xslt basedir="${documentation}" destdir="${xsl.gen}" style="${xsl}/stylesheet.xsl" extension=".xsl">
</xslt>
</target>
<target name="create-xsd" depends="create-xsl" description="Create xsd with documentation using javadoc xsl">
<xslt basedir="${xsd}" destdir="${xsd.gen}" style="${xsl.gen}/javadoc.xsl" extension=".xsd"
includes="*.xsd"></xslt>
</target>
Target create-src merely creates the directory tree for the generated files.
The issue has become that the documenation XML is really getting too big and to remedy this, I want to break it into many pieces. So let's say I have XMLs a through z:
a.xml
b.xml
...
z.xml
And I have matching XSDs:
a.xsd
b.xsd
...
z.xsd
Is there a good way, without making a bevy of targets to cover all the xml files, to match 1-to-1 XML-to-XSD (a.xml only interacts with a.xsd, etc.)?
Thanks for your time,
Cody Holbrook
Re: One-to-one file mapping
Posted by Matt Benson <gu...@yahoo.com>.
--- "Holbrook, R Cody (Cody)" <rc...@avaya.com> wrote:
> Is there a good way, without making a bevy of
> targets to cover all the xml files, to match 1-to-1
> XML-to-XSD (a.xml only interacts with a.xsd, etc.)?
Cody:
Without my having any experience working with the xslt
task, can you elaborate a little on what you want to
happen per a,b,...,z file pair?
Thanks,
Matt
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org