On 09.Aug.2002 -- 05:13 PM, Albert Cervera Areny wrote:
> Hi,
>
> This is what I receive after the SQLTransform when I look it through the
> browser (option view source code)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rowset>
> <row>
> <id>081778</id>
> <role/>
> <nom>name</nom>
> <passwd>paswd</passwd>
> <programa>progname</programa>
> </row>
> </rowset>
>
> After the XSLTransform, the browser gives an error (because no initial tag
> in the xml file) and if I look at the source code of the page I see:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
> 081778namepassdprogname
>
> About the usuaris.xsl it is quite simple:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="rowset">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="row">
> <authentication>
> <ID><xsl:value-of select="id"/></ID>
> <role><xsl:value-of select="role"/></role>
> <data>
> <xsl:copy-of select="nom"/>
> <xsl:copy-of select="programa"/>
> <xsl:copy-of select="instruccions"/>
> </data>
> </authentication>
> </xsl:template>
> </xsl:stylesheet>
You need to copy all other elements explicitly!
<!--
Copy all nodes that were not handled by a dedicated template.
-->
<xsl:template match="@*|node()" priority="-2">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Best, to use logicsheet-util.xsl in your own logicsheets.
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>