cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Cruel <...@upb.de>
Subject some XSP problems
Date Sun, 29 Jun 2003 16:04:06 GMT
Hi everybody,
I've got a huge problem while compiling my XSP data. My XSP data
consists of about 60-70 translations, a logical part and a huge part
of SQL-querys. I guess this data hits the 64k barrier of java while
cocoon is compiling it. Does anyone know how to avoid hitting this
barrier?

THX!!!



So here we go...

logical part:

<xsp:logic>

 private static Properties getEnvVars() throws IOException <!--Umgebungsvariablen auswerten-->
{
        Process p = null;
        Properties envVars = new Properties();
        Runtime r = Runtime.getRuntime();
        String OS = System.getProperty("os.name").toLowerCase();
        if (OS.indexOf("windows 9") > -1)
        {
                p = r.exec( "command.com /c set" );
    }
        else if( (OS.indexOf("nt") > -1) )
        {
                p = r.exec( "cmd.exe /c set" );
    }
        else if( (OS.indexOf("windows 2000") > -1 ))
        {
                p = r.exec( "cmd.exe /c set" );
    }
        else if( (OS.indexOf("windows xp") > -1))
        {
                p = r.exec( "cmd.exe /c set" );
    }
        else
        {
                p = r.exec( "env" );
    }
        BufferedReader br = new BufferedReader( new InputStreamReader( p.getInputStream()
) );
        String line;
        while( (line = br.readLine()) != null )
        {
                int idx = line.indexOf( '=' );
                String key = line.substring( 0, idx );
                String value = line.substring( idx+1 );
                envVars.setProperty( key, value );
        }
        return envVars;
}


</xsp:logic>



translations:


<!-- TRANSLATIONS -->
  <NetworkID><xsp-request:get-parameter name="NetworkID"/></NetworkID>
  <locale><xsp-request:get-parameter name="locale"/></locale>
  <translation_overview><i18n:text>metadata_overview</i18n:text></translation_overview>


  <!-- Navigation -->
  <navigation>
    <element>
      <i18n:text>studyprogram_navigation_studyprogram</i18n:text>
    </element>
    <element>
      <link>
        <title><i18n:text>studyprogram_navigation_courses</i18n:text></title>
         <href>../courses_<xsp-request:get-parameter name="locale"/>.html</href>
      </link>
    </element>
    <element>
      <i18n:text>studyprogram_navigation_metadata</i18n:text>
    </element>
  </navigation>

  <!-- General -->
  <translation_general><i18n:text>metadata_general</i18n:text></translation_general>
  <translation_general_identifier><i18n:text>metadata_general_identifier</i18n:text></translation_general_identifier>
  <translation_general_elementlevel><i18n:text>metadata_general_elementlevel</i18n:text></translation_general_elementlevel>
  <translation_general_elementlevel_1><i18n:text>metadata_general_elementlevel_1</i18n:text></translation_general_elementlevel_1>
  <translation_general_elementlevel_2><i18n:text>metadata_general_elementlevel_2</i18n:text></translation_general_elementlevel_2>
  <translation_general_elementlevel_3><i18n:text>metadata_general_elementlevel_3</i18n:text></translation_general_elementlevel_3>
  <translation_general_elementlevel_4><i18n:text>metadata_general_elementlevel_4</i18n:text></translation_general_elementlevel_4>
  <translation_general_elementlevel_5><i18n:text>metadata_general_elementlevel_5</i18n:text></translation_general_elementlevel_5>
  <translation_general_title><i18n:text>metadata_general_title</i18n:text></translation_general_title>
  <translation_general_catalog><i18n:text>metadata_general_catalog</i18n:text></translation_general_catalog>
  <translation_general_entry><i18n:text>metadata_general_entry</i18n:text></translation_general_entry>
  <translation_general_language><i18n:text>metadata_general_language</i18n:text></translation_general_language>
  <translation_general_description><i18n:text>metadata_general_description</i18n:text></translation_general_description>
  <translation_general_keywords><i18n:text>metadata_general_keywords</i18n:text></translation_general_keywords>
  <translation_general_coverage><i18n:text>metadata_general_coverage</i18n:text></translation_general_coverage>
  <translation_general_structure><i18n:text>metadata_general_structure</i18n:text></translation_general_structure>
  <translation_general_aggregationlevel><i18n:text>metadata_general_aggregationlevel</i18n:text></translation_general_aggregationlevel>

  <!-- Lifecycle -->
  <translation_lifecycle><i18n:text>metadata_lifecycle</i18n:text></translation_lifecycle>
  <translation_lifecycle_version><i18n:text>metadata_lifecycle_version</i18n:text></translation_lifecycle_version>
  <translation_lifecycle_status><i18n:text>metadata_lifecycle_status</i18n:text></translation_lifecycle_status>
  <translation_lifecycle_contribute><i18n:text>metadata_lifecycle_contribute</i18n:text></translation_lifecycle_contribute>
  <translation_lifecycle_contribute_role><i18n:text>metadata_lifecycle_contribute_role</i18n:text></translation_lifecycle_contribute_role>
  <translation_lifecycle_contribute_entity><i18n:text>metadata_lifecycle_contribute_entity</i18n:text></translation_lifecycle_contribute_entity>
  <translation_lifecycle_contribute_date><i18n:text>metadata_lifecycle_contribute_date</i18n:text></translation_lifecycle_contribute_date>

  <!-- Metadata -->
  <translation_metadata><i18n:text>metadata_metadata</i18n:text></translation_metadata>
  <translation_metadata_catalog><i18n:text>metadata_metadata_catalog</i18n:text></translation_metadata_catalog>
  <translation_metadata_entry><i18n:text>metadata_metadata_entry</i18n:text></translation_metadata_entry>
  <translation_metadata_contribute><i18n:text>metadata_metadata_contribute</i18n:text></translation_metadata_contribute>
  <translation_metadata_contribute_role><i18n:text>metadata_metadata_contribute_role</i18n:text></translation_metadata_contribute_role>
  <translation_metadata_contribute_entity><i18n:text>metadata_metadata_contribute_entity</i18n:text></translation_metadata_contribute_entity>
  <translation_metadata_contribute_date><i18n:text>metadata_metadata_contribute_date</i18n:text></translation_metadata_contribute_date>
  <translation_metadata_scheme><i18n:text>metadata_metadata_scheme</i18n:text></translation_metadata_scheme>
  <translation_metadata_language><i18n:text>metadata_metadata_language</i18n:text></translation_metadata_language>

  <!-- Technical -->
  <translation_technical><i18n:text>metadata_technical</i18n:text></translation_technical>
  <translation_technical_format><i18n:text>metadata_technical_format</i18n:text></translation_technical_format>
  <translation_technical_size><i18n:text>metadata_technical_size</i18n:text></translation_technical_size>
  <translation_technical_requirements><i18n:text>metadata_technical_requirements</i18n:text></translation_technical_requirements>
  <translation_technical_requirements_name><i18n:text>metadata_technical_requirements_name</i18n:text></translation_technical_requirements_name>
  <translation_technical_requirements_type><i18n:text>metadata_technical_requirements_type</i18n:text></translation_technical_requirements_type>
  <translation_technical_requirements_minimum><i18n:text>metadata_technical_requirements_minimum</i18n:text></translation_technical_requirements_minimum>
  <translation_technical_requirements_maximum><i18n:text>metadata_technical_requirements_maximum</i18n:text></translation_technical_requirements_maximum>
  <translation_technical_installationremarks><i18n:text>metadata_technical_installationremarks</i18n:text></translation_technical_installationremarks>
  <translation_technical_otherplatformrequirements><i18n:text>metadata_technical_otherplatformrequirements</i18n:text></translation_technical_otherplatformrequirements>
  <translation_technical_duration><i18n:text>metadata_technical_duration</i18n:text></translation_technical_duration>

  <!-- Educational -->
  <translation_educational><i18n:text>metadata_educational</i18n:text></translation_educational>
  <translation_educational_interactivitytype><i18n:text>metadata_educational_interactivitytype</i18n:text></translation_educational_interactivitytype>
  <translation_educational_learningresourcetype><i18n:text>metadata_educational_learningresourcetype</i18n:text></translation_educational_learningresourcetype>
  <translation_educational_interactivitylevel><i18n:text>metadata_educational_interactivitylevel</i18n:text></translation_educational_interactivitylevel>
  <translation_educational_semanticdensity><i18n:text>metadata_educational_semanticdensity</i18n:text></translation_educational_semanticdensity>
  <translation_educational_intendedenduserrole><i18n:text>metadata_educational_intendedenduserrole</i18n:text></translation_educational_intendedenduserrole>
  <translation_educational_context><i18n:text>metadata_educational_context</i18n:text></translation_educational_context>
  <translation_educational_typicalagerange><i18n:text>metadata_educational_typicalagerange</i18n:text></translation_educational_typicalagerange>
  <translation_educational_difficulty><i18n:text>metadata_educational_difficulty</i18n:text></translation_educational_difficulty>
  <translation_educational_typicallearningtime><i18n:text>metadata_educational_typicallearningtime</i18n:text></translation_educational_typicallearningtime>
  <translation_educational_description><i18n:text>metadata_educational_description</i18n:text></translation_educational_description>

  <!-- Rights -->
  <translation_rights><i18n:text>metadata_rights</i18n:text></translation_rights>
  <translation_rights_cost><i18n:text>metadata_rights_cost</i18n:text></translation_rights_cost>
  <translation_rights_copyrightandotherrestrictions><i18n:text>metadata_rights_copyrightandotherrestrictions</i18n:text></translation_rights_copyrightandotherrestrictions>
  <translation_rights_description><i18n:text>metadata_rights_description</i18n:text></translation_rights_description>

  <!-- Relation -->
  <translation_relation><i18n:text>metadata_relation</i18n:text></translation_relation>
  <translation_relation_kind><i18n:text>metadata_relation_kind</i18n:text></translation_relation_kind>
  <translation_relation_identifier><i18n:text>metadata_relation_identifier</i18n:text></translation_relation_identifier>
  <translation_relation_description><i18n:text>metadata_relation_description</i18n:text></translation_relation_description>

  <!-- Annotation -->
  <translation_annotation><i18n:text>metadata_annotation</i18n:text></translation_annotation>
  <translation_annotation_person><i18n:text>metadata_annotation_person</i18n:text></translation_annotation_person>
  <translation_annotation_date><i18n:text>metadata_annotation_date</i18n:text></translation_annotation_date>
  <translation_annotation_description><i18n:text>metadata_annotation_description</i18n:text></translation_annotation_description>

  <!-- Classification -->
  <translation_classification><i18n:text>metadata_classification</i18n:text></translation_classification>
  <translation_classification_purpose><i18n:text>metadata_classification_purpose</i18n:text></translation_classification_purpose>
  <translation_classification_source><i18n:text>metadata_classification_source</i18n:text></translation_classification_source>
  <translation_classification_id><i18n:text>metadata_classification_id</i18n:text></translation_classification_id>
  <translation_classification_entry><i18n:text>metadata_classification_entry</i18n:text></translation_classification_entry>
  <translation_classification_description><i18n:text>metadata_classification_description</i18n:text></translation_classification_description>
  <translation_classification_keywords><i18n:text>metadata_classification_keywords</i18n:text></translation_classification_keywords>

  <!-- PDF -->
  <translation_pdf_all><i18n:text>metadata_pdf_all</i18n:text></translation_pdf_all>
  <translation_pdf_category><i18n:text>metadata_pdf_category</i18n:text></translation_pdf_category>
  <translation_pdf_header_all><i18n:text>metadata_pdf_header_all</i18n:text></translation_pdf_header_all>
  <translation_pdf_header_overview><i18n:text>metadata_pdf_header_overview</i18n:text></translation_pdf_header_overview>
  <translation_pdf_header_general><i18n:text>metadata_pdf_header_general</i18n:text></translation_pdf_header_general>
  <translation_pdf_header_lifecycle><i18n:text>metadata_pdf_header_lifecycle</i18n:text></translation_pdf_header_lifecycle>
  <translation_pdf_header_metadata><i18n:text>metadata_pdf_header_metadata</i18n:text></translation_pdf_header_metadata>
  <translation_pdf_header_technical><i18n:text>metadata_pdf_header_technical</i18n:text></translation_pdf_header_technical>
  <translation_pdf_header_educational><i18n:text>metadata_pdf_header_educational</i18n:text></translation_pdf_header_educational>
  <translation_pdf_header_rights><i18n:text>metadata_pdf_header_rights</i18n:text></translation_pdf_header_rights>
  <translation_pdf_header_relation><i18n:text>metadata_pdf_header_relation</i18n:text></translation_pdf_header_relation>
  <translation_pdf_header_annotation><i18n:text>metadata_pdf_header_annotation</i18n:text></translation_pdf_header_annotation>
  <translation_pdf_header_classification><i18n:text>metadata_pdf_header_classification</i18n:text></translation_pdf_header_classification>
  <translation_pdf_header_page><i18n:text>metadata_pdf_header_page</i18n:text></translation_pdf_header_page>
  <translation_help><i18n:text>help</i18n:text></translation_help>
  <!-- End of Translations -->


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