You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Mustafa Ali, Halgurt" <Mu...@docomolab-euro.com> on 2003/11/07 10:12:37 UTC

SourceWritingTransformer problem!!

Dear all,
I have an xml-file like this:
 
<RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:ut="http://description.org/schema/user-type"
xmlns:serv="http://description.org/schema/services">
   <rdf:Description ID="Profile">
      <prf:component>
         <rdf:Description ID="HardwarePlatform">
           <rdf:type
resource="http://www.wapforum.org/profiles/UAPROF/ccppschema-20020710#Ha
rdwarePlatform"/>
            <prf:ScreenSize>96x65</prf:ScreenSize>
            <prf:Model>8910i</prf:Model>
            <prf:ScreenSizeChar>9x6</prf:ScreenSizeChar>
            <prf:BitsPerPixel>12</prf:BitsPerPixel>
            <prf:Keyboard>PhoneKeypad</prf:Keyboard>
            <prf:NumberOfSoftKeys>2</prf:NumberOfSoftKeys>
            <prf:Vendor>Nokia</prf:Vendor>
            <prf:SoundOutputCapable>Yes</prf:SoundOutputCapable>
 
<prf:StandardFontProportional>Yes</prf:StandardFontProportional>
            <prf:PixelsAspectRatio>1x1</prf:PixelsAspectRatio>
         </rdf:Description>
      </prf:component>
   </rdf:Description>
</RDF>
 
I want to add a new Description element like this
 
   <rdf:Description ID="Usertype">
      <prf:component>
              ..............
      </prf:component>
   </rdf:Description>
 
I am using the SourceWritingTransformer like that:
 
<source:write>
            <source:source>file.xml</source:source>
            <source:path>RDF<source:path>
            <source:fragment>
                        .
                        .
            <source:fragment>
</source:write>
 
But this does not work while the RDF element has 3 name spaces, how can
I tell the SourceWritingTrnsformer that RDF has these name spaces? 
 
Thanks for help,
Halgurt