[ http://issues.apache.org/jira/browse/XALANJ-1903?page=all ]

Brian Minchau updated XALANJ-1903:
----------------------------------

    Fix Version: 2.7

> SystemId Unknown; Line #-1; Column #-1; XSLT Error
> --------------------------------------------------
>
>          Key: XALANJ-1903
>          URL: http://issues.apache.org/jira/browse/XALANJ-1903
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation, Xalan-interpretive
>     Versions: 2.6
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Harsha Perera
>     Assignee: Xalan Developers Mailing List
>      Fix For: 2.7
>  Attachments: AttsToElems.xsl, PeopleAtts.xml
>
> When a XSL stylesheet is been transformed an error is given.
> The command executed is
> java org.apache.xalan.xslt.Process -in PeopleAtts.xml -xsl AttsToElems.xsl 
> -out Elems.xml
> The error given is
> SystemId Unknown; Line #-1; Column #-1; XSLT Error 
> (javax.xml.transform.TransformerConfigurationException): 
> javax.xml.transform.TransformerConfigurationException: 
> transform.TransformerConfigurationException: xsl:element is not allowed in 
> this position in the stylesheet!
> The XML document that is to be transformed is:
> <?xml version="1.0"?>
> <people>
>   <name first="John" middle="Fitzgerald Johansen" last="Doe"/>
>   <name first="Franklin" middle="D." last="Neuman"/>
>   <name first="Alfred" middle="E." last="Public"/>
>   <name first="John" middle="Q." last="Public"/>
>   <name first="Jane" middle="" last="Doe"/>
> </people>
> The XSLT stylesheet used is:
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
> <xsl:template match="/">
>   <people>
>     <xsl:apply-templates select="people/name"/>
>   </people>
> </xsl:template>
> <xsl:template match="name">
>   <name>
>     <xsl:apply-templates select="@*"/>
>   </name>
> </xsl:template>
> <xsl:template match="@*"/>
>   <xsl:element name="{local-name()}"><xsl:value-of select="."/></xsl:element>
> </xsl:template>
> </xsl:stylesheet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to