You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Douglas Hubler <dh...@pingtel.com> on 2005/11/02 16:39:06 UTC

Re: style task howto supply XML Schema URLS

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