cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per-Olof Norén <>
Subject SQLTransformer doesn´t output namespace prefixes?
Date Thu, 04 Oct 2001 17:04:42 GMT
I´m currently implementing a kind of "backend" pipeline for a cocoon.
The concept is a xml based command language that encapsulates and "objectifies" the underlying
relational database model.

1. xslt transform ( parsing the criteria part of the command into sql query)
2. sql transformer 
3. xslt transform (parsing the extent ie data to view, and creating queries)
4. sql transformer 
5. xslt (creating the response)

protocol is something like this:

initial file looks something like this:

        <cmd:criterion type="type">value</cmd:criterion>
        <cmd:extent type="type">parameter</cmd:extent>

after xslt transformation

        <sql:query> THE QUERY </sql:query>
        <cmd:extent type="type">parameter</cmd:extent>

after sql transformer:

        <cmd:extent type="type">parameter</cmd:extent>

No sql prefix is outputted on the objects tag!  The outputted namespace uri is correct, though
Looking into the code of the SQLTransformer one detects that
there is no implementation of the start- and endPrefixMapping.
To my knowledge, there is no way of knowing the prefix to output
if the start- and endPrefixMapping methods aren´t implemented?

Is there a design reason for not to output prefixes?
If there is, please let me know.
I will probably implement the prefix outputting mechanism if there is no reason.

Thx in advance
Per-Olof Norén
Stockholm, Sweden

View raw message