cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Romayev <roma...@yahoo.com>
Subject Re: Source Writing Transformer: Adding namespaces
Date Thu, 26 Sep 2002 10:34:13 GMT
Not sure how I would do that, here is an example:

What I would like to get is:
<news  
  xmlns:pub="http://www.romayev.com/publication/1.0">
  <item id="N100AE">
    <pub:publication>
     
<pub:published-date>2001-11-06</pub:published-date>
      ...
    </pub:publication>
  </item>
</news>

Here is the code I use for SourceWritingTransformer:
<source:write src="content/news.xml">
  <news  
   
xmlns:pub="http://www.romayev.com/publication/1.0">
    <item id="N100AE">
      <pub:publication>
       
<pub:published-date>2001-11-06</pub:published-date>
        ...
      </pub:publication>
    </item>
  </news>
</source:write>

--- funing <funing@necas.nec.co.jp> wrote:
> Can you use the "insert" tag?
> 
> On Thu, 26 Sep 2002 02:17:56 -0700 (PDT)
> Alex Romayev <romayev@yahoo.com> wrote:
> 
> > Hi,
> > 
> > I'm using Source Writing Transformer to write XML
> to
> > file.  I need to add namespace declarations to the
> > root node, does anyone know how to do this?
> > 
> > Thanks,
> > -Alex
> 
> 
> -- 
> funing <funing@necas.nec.co.jp>
> 
> 
>
---------------------------------------------------------------------
> Please check that your question  has not already
> been answered in the
> FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:    
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message