[ http://issues.apache.org/jira/browse/XALANJ-1576?page=all ]
Brian Minchau updated XALANJ-1576: ---------------------------------- Version: Latest Development Code (was: 2.5) > xsl:attribute and element extensions > ------------------------------------ > > Key: XALANJ-1576 > URL: http://issues.apache.org/jira/browse/XALANJ-1576 > Project: XalanJ2 > Type: Bug > Components: parse-or-compile, Xalan-interpretive > Versions: Latest Development Code > Environment: Operating System: All > Platform: All > Reporter: Dimitry E Voytenko > Assignee: Xalan Developers Mailing List > Attachments: 1 > > Using extension elements inside of xsl:attribute produces error: > "javax.xml.transform.TransformerException: ns:name is not allowed in this > position in the stylesheet!" > For instance, if I have describe prefix "my" as an extension element prefix, > and there's element "url" in this namespace, call to > <xsl:attribute name="HREF"> > <my:url>...</my:url> > </xsl:attribute> > will produce error described above. > Extension usage such as this is particulary convinient for URL creation. > Workaround in this situation will be using temp variable: > <xsl:variable name="href"> > <my:url>...</my:url> > </xsl:variable> > <xsl:attribute name="HREF"> > <xsl:value-of select="$href"/> > </xsl:attribute> > As I understand, error is being raise during stylesheet parsing. Still, I > couldn't find such a restriction anywhere in the XSLT 1.0 specification. > Paragraph 7.1.3 of the spec only says that it's an error "Creating nodes > other > than text nodes during the instantiation of the content of the xsl:attribute > element; implementations may either signal the error or ignore the offending > nodes." > But I don't think this paragraph can be applied to this situation. > Otherwise, spec allows using "Content: template" inside of xsl:attribute and > extension elements belong to this group. -- 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]