ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Hubler <dhub...@pingtel.com>
Subject style task howto supply XML Schema URLS
Date Mon, 31 Oct 2005 19:20:53 GMT
Anyone know how to specify local schema files in style tasks?

style task lets you use xmlcatalog to use local DTDs, but I want to do the same
for XML Schema files.  xmlvalidate seems to have been updated to support
specifying schema locations via attribute elements but style task has not.  


Example XML (in.xml)
-----------------
<?xml version="1.0" encoding="UTF-8"?>
<xxx xmlns="http://someurl/file.xsd" >
 <yyy/>
</xxx>

-------------------

Example ANT file
-----------------
  <style style="style.xsl" 
    in="in.xml" 
    out="out.xml">

    <!-- WANT TO DO THIS BUT CANT -->
    <attribute name="http://someurl/file.xsd" value="local/file.xsd"/>

  </style>
  
-----------------



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message