From 2b2147c35c2a7d746cbf8c11847f3a643915e36c Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 6 Jun 2005 20:54:23 +0000 Subject: [PATCH] clarifying namespaces and adding new xslt git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@332 9efc2488-bf62-4759-914b-345cdb29e865 --- examples/fieldmapper2javascript.xsl | 7 +- examples/fieldmapper2perl.xsl | 3 +- examples/gen-fieldmapper.xml | 321 ++++++++++++++-------------- 3 files changed, 167 insertions(+), 164 deletions(-) diff --git a/examples/fieldmapper2javascript.xsl b/examples/fieldmapper2javascript.xsl index 8c8e5c7..e2f8e1d 100644 --- a/examples/fieldmapper2javascript.xsl +++ b/examples/fieldmapper2javascript.xsl @@ -3,6 +3,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:opensrf="http://opensrf.org/xmlns/opensrf" xmlns:cdbi="http://opensrf.org/xmlns/opensrf/cdbi" + xmlns:database="http://opensrf.org/xmlns/opensrf/database" xmlns:perl="http://opensrf.org/xmlns/opensrf/perl" xmlns:javascript="http://opensrf.org/xmlns/opensrf/javascript" xmlns:c="http://opensrf.org/xmlns/opensrf/c"> @@ -196,7 +197,7 @@ function (array) { .last_real_field = 2; -.prototype.db_type = ""; +.prototype.db_type = ""; .prototype.isnew = function(new_value) { if(arguments.length == 1) { this.array[0] = new_value; } @@ -262,7 +263,7 @@ function (array) { - + // accessor for : .prototype. = function () { @@ -275,7 +276,7 @@ function (array) { if (this.array[_pos].length == 0) { /* get the real thing. * search where .() - * equals this.(); + * equals this.(); */ this.array[_pos] = this.uber.search( , diff --git a/examples/fieldmapper2perl.xsl b/examples/fieldmapper2perl.xsl index 202ced9..4d3a8a5 100644 --- a/examples/fieldmapper2perl.xsl +++ b/examples/fieldmapper2perl.xsl @@ -3,6 +3,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:opensrf="http://opensrf.org/xmlns/opensrf" xmlns:cdbi="http://opensrf.org/xmlns/opensrf/cdbi" + xmlns:database="http://opensrf.org/xmlns/opensrf/database" xmlns:perl="http://opensrf.org/xmlns/opensrf/perl" xmlns:javascript="http://opensrf.org/xmlns/opensrf/javascript" xmlns:c="http://opensrf.org/xmlns/opensrf/c"> @@ -196,7 +197,7 @@ sub clear_ { - + # accessor for ::: sub { diff --git a/examples/gen-fieldmapper.xml b/examples/gen-fieldmapper.xml index 3628ee3..2695030 100644 --- a/examples/gen-fieldmapper.xml +++ b/examples/gen-fieldmapper.xml @@ -1,326 +1,327 @@ - - + - - - action.survey_response - action.survey_response_id_seq - - - action_survey_response - + + action.survey_response + action.survey_response_id_seq + + + action_survey_response + Fieldmapper Fieldmapper OpenILS::Storage::CDBI - - + + database:primary="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + - - - - - - + + + + + + - + - - - action.survey_question - action.survey_question_id_seq - - - action_survey_question - + + action.survey_question + action.survey_question_id_seq + + + action_survey_question + Fieldmapper Fieldmapper OpenILS::Storage::CDBI - - + + database:primary="true" /> - + database:required="true" /> - + database:required="true" /> - + - - - - - + + + + + - - - action.survey_answer - action.survey_answer_id_seq - - - action_survey_answer - + + action.survey_answer + action.survey_answer_id_seq + + + action_survey_answer + Fieldmapper Fieldmapper OpenILS::Storage::CDBI - - + + database:primary="true" /> - + database:required="true" /> - + database:required="true" /> - + - - - - - + + + + + - - - actor.org_unit - actor.org_unit_id_seq - - - actor_org_unit - + + actor.org_unit + actor.org_unit_id_seq + + + actor_org_unit + Fieldmapper Fieldmapper OpenILS::Storage::CDBI - - + - - + database:primary="true" /> + + - - - action.survey - action.survey_id_seq - - - action_survey - + + action.survey + action.survey_id_seq + + + action_survey + Fieldmapper Fieldmapper OpenILS::Storage::CDBI - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - + + database:primary="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" /> - + database:required="true" + database:default="now()" /> - + database:required="true" + database:default="now() + '1 month'" /> - - - - - + - - - - - + + + + + - + - - + + -- 2.43.2