I want to confirm that this looks ok to commit, as this being my
first attempt with dssl.  This will add a & in front of  a
parameter in methodparam block defined as follows:

<type>string</type><parameter role="reference">value</parameter>

It seems odd that I have to process-children twice, jade complains
when I take the original process-children out of the (if..) It,
however, appears to work well, tested with optional parameters as
well.

When I take the proccess-children out of the second sequence, the
children dont get processed... bizaarre logic go me.


Index: common.dsl.in
===================================================================
RCS file: /repository/phpdoc/dsssl/common.dsl.in,v
retrieving revision 1.10
diff -u -r1.10 common.dsl.in
--- common.dsl.in 20 Feb 2004 10:16:56 -0000  1.10
+++ common.dsl.in 31 Aug 2004 02:54:53 -0000
@@ -311,9 +311,15 @@
 ;; render parameter name
 (element (methodparam parameter)
  (make sequence
+   (if (equal? (attribute-string (normalize "role")) "reference")
+     (make sequence
+       (literal "&")
+       (process-children-trim)
+     )
    (process-children-trim)
    )
  )
+)

 ;; render default value
 (element (methodparam initializer)

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

Reply via email to