cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mustafa Ali, Halgurt" <Mustafa...@docomolab-euro.com>
Subject Using multiple resources in cocoon
Date Tue, 23 Sep 2003 08:05:43 GMT
Hi,
 
I have maybe a stupid question; I am using an xml-file to generate some
web application with cocoon, here is a part of my xml-file:
 
<?xml version="1.0" ?>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <rdf: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">
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <rdf:Description ID="vcp-services"
city="munich">
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <serv:component>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <rdf:Description ID="museum">
  <rdf:type href="munich/cityinformation/museums" /> 
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <ut:user>
  <rdf:tourist /> 
  </ut:user>
  <rdf:image href="munich/images/stgeorg_ausgeschnitten.jpg" /> 
  <ut:description>museums and galleries, Historical sights - technical
sights - history and art. A selection of museums and collections in
Munich.</ut:description> 
  </rdf:Description>
  </serv:component>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <serv:component>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <rdf:Description ID="hotels">
  <rdf:type href="munich/cityinformation/hotels" /> 
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <ut:user>
  <rdf:tourist /> 
  <rdf:businessman /> 
  </ut:user>
  <ut:description>A list of munichs best Hotels.</ut:description> 
  </rdf:Description>
  </serv:component>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <serv:component>
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <rdf:Description ID="parking">
  <rdf:type href="munich/cityinformation/parking" /> 
 
<file:///C:\Dokumente%20und%20Einstellungen\MustafaAli.DOCOMOLAB-EURO\De
sktop\VCP-Services.xml##> - <ut:user>
  <rdf:tourist /> 
  <rdf:businessman /> 
  </ut:user>
  <ut:description>Parking psobilities in and around
munich.</ut:description> 
  </rdf:Description>
  </serv:component>
  </rdf:Description>
  </rdf:RDF>
 
and I have some user profiles, when I get a request, I am getting a
request parameter with the ID of a single user after logging in, I saved
the user profiles in files with there ID and an extension .xml as file
names. Here is a sample user profile:
 
<?xml version="1.0" ?>
<user><userdata><ID>...</ID><usertype><tourist>yes</tourist><businessman
>no</businessman> ........</userdata></user>
 
now I want to use a stylesheet to generate my web application, and I
want to generate just the parts of my xml-file, which are supposed to be
for the user according to the values of usertype in the user profile, to
do that I used document function, but as soon as I use this function on
the user profile, all other roles, which are operation on my source file
will be ignored and I get the whole content of the profile back, what am
I doing wrong? Are there any possibilities to do that? Has somebody an
idea how can I do that?
 
It is really urgent; I am working since many days on this issue without
any progression.
 
Best regards,
Halgurt
PS:sind hier irgendwelche deutsche, oder deutschsprechende, Ich brauche
wirklich Hilfe und bin echt am Verzweifeln.
 
 

Mime
View raw message