cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject CIncludeTransformer issues
Date Thu, 01 Jul 2004 09:52:29 GMT
I want to build a cform out of several reusable parts. Consider a 
contractor, user, company having an address. So i created a file that 
contains only address widgets
> <?xml version="1.0" encoding="utf-8"?>
> <fd:widgets xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
> <fd:field id="street">
>  <fd:label>Ulica</fd:label>
>  <fd:datatype base="string"/>
> </fd:field>
> <fd:field id="building">
>  <fd:label>Numer budynku</fd:label>
>  <fd:datatype base="string"/>
> </fd:field>
> <fd:field id="apartment">
>  <fd:label>Numer lokalu</fd:label>
>  <fd:datatype base="string"/>
> </fd:field>
>  <fd:field id="postalCode">
>  <fd:label>Kod pocztowy</fd:label>
> <fd:datatype base="string"/>
> </fd:field>
>  <fd:field id="city">
>  <fd:label>Miejscowosc</fd:label>
> <fd:datatype base="string"/>
> </fd:field>
> </fd:widgets>

1. Is there some syntax that allows to do that in cinclude:
<xi:include 
href="editAddress-def.xml#xmlns(fd=http://apache.org/cocoon/forms/1.0#definition) 
xpointer(/fd:widgets/fd:*)"/>

I cannot seem to find a way to do a succesful xpath query that involves 
namespaces (when using cinclude).

2. If not would you accept the path that allows to do strip-root in 
CIncludeTransformer - it would also be much faster than select="/root/*"

I've been browsing archives for this. There was an answer that I should 
use map:aggregate -> map:part strip-root=true" but that is very 
inconvenient in my case.

WDYT?
	lg

-- 
Leszek Gawron                                      lgawron@mobilebox.pl



Mime
View raw message