ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Hubler <dhub...@pingtel.com>
Subject Re: style task howto supply XML Schema URLS
Date Wed, 02 Nov 2005 15:39:06 GMT
I'll assume it can't be done.

for those interested in a hack workaround, I use ant's replace string to 
remove the xmlns links  before XSLT and add them back after XSLT.

Douglas Hubler wrote:

>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
>
>
>
>  
>


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


Mime
View raw message