[ mx4j-Bugs-834296 ] common.xsl "str" template error

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #834296, was opened at 2003-11-01 16:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=834296&group_id=47745

Category: HTTP Adaptor
Group: Release 1.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Scully (btscully)
Assigned to: Brian Scully (btscully)
Summary: common.xsl "str" template error

Initial Comment:
Per discussion on mx4j-devel with Carlos, excerpted 
from the mx4j-user list:

Niklas Berg wrote:

  Would it help you if I told that is seems to be caused 
by the row saying:
 '<xsl:when test="contains($text, $paramText)">'
 in the template 'replace-param' defined in the 
file 'common.xsl'
 
 A call to 'str' (which calls replace-param) looking like 
this:
 <xsl:call-template name="str">
     <xsl:with-param 
name="id">mbean.mbean.description</xsl:with-param>
     <xsl:with-param name="p0"><xsl:value-of
 select="@description"/></xsl:with-param>
 </xsl:call-template>
 causes the message below (where 'description' 
obviously comes from
 "@description" above):
 
 SystemId Unknown; Line #14; Column #-1; Cannot add 
attribute description
 after child nodes or before an element is produced. 
Attribute will be
 ignored.
 
 Anything beyond this research is beyond my 
capabilities :(
 
> I've seeing the samething for a while. It seems that 
some changes in
 > xalan may have generated that. I've tried to trace 
the problem but I
 > have not a good answer at this time.
 >
 > Any patch would be appreciated :-)
 >
 > Regards
 > Carlos
 >
 > Niklas Bergh wrote:
 > >There is a template in common.xsl named 'str' (row 
388) that is used to
 > >extract items from the strings_XX.xml files. For 
parameters this template
 > >takes in one ID, which identifies the string resource 
requested, and
 another
 > >two parameters named p0 and p1. p0 and p1 can be 
used to supply one or
 two
 > >strings which will be inlined into the language-
specific string wherever
 > >that one contains either of the sequences '{0}' 
or '{1}'. This
 > >functionallity is, amongst other things, used to 
generate the 'Domain:
 > ><domainname>' strings which is supposed to be 
displayed by the
 > >serverbydomain page... Right now my 
serverbydomain page displays only
 > >'Domain:  ' instead of that...
 > >
 > >I used the Oxygen XML editor to apply the 
serverbydomain XSL to a
 > >serverbydomain XML it worked just fine there......
 > >
 > >I am also seeing a strange message printed to 
stderr now and then..
 > >'SystemId Unknown; Line #12; Column #-1; Cannot 
add attribute name after
 > >child nodes or before an element is produced. 
Attribute will be ignored.'
 > >Could this be related in some way?
 > >


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=834296&group_id=47745


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.