Hi,
> > Besides, the catalog system is only for DTD's and
> > usually not used for locating schema's.
>
> so how am i supposed to redirect for schemas, then? is there a
> 'standard' way to do this, like with catalogs? does it go in
> cocoon.xconf or something like that? i don't want to use catalogs or
> hack up cocoon if i don't have to.
How do you mean redirect? Just for _processing_ the xml namespaces aware the actual schema is not
required. If you want to validate the input or the result, then using the schemaLocation approach
should be sufficient, but you might have to set a flag that input should be validated. If you want
to validate the result there is the ValidatingTransformer (is it still around?) which takes
schemalocations as parameters, or I believe the saxon parser has some nice xslt 2 features to do
things like that.
Jason Dusek wrote:
the xslt does not output a namespace declaration for my xml. here is a
fuller example:
<xsl:stylsheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lay="space://layout">
<xsl:template match="resume">
<lay:layout>
<xsl:apply-templates/>
</lay:layout>
</xsl:template>
<!-- more of the same -->
</xsl:stylesheet>
the output looks like this:
<?xml encoding="ISO-SOMETHING-OR-OTHER" version="1.0"?>
<lay:layout>
<!-- more of the same -->
</lay:layout>
Can you tell how your sitemap looks like? That sounds really odd.
By the way, the output instructions of the xsl stylesheet are ignored as the sax events are rerouted
directly to the following transformer or serializer. Could it be that you are using the html
serializer or a non-standard xml serializer? There were two versions of serializers a few versions ago.
If you want to output utf-8, add the following to the configuration of you
serializer:
<encoding>utf-8</encoding>
Cheers,
Geert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]