Thanks. I could get the XML change and first step was
simple as you stated afterwards.
From: Hughes, Michael (GF-X) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 2:33 PM To: xalan-c-users@xml.apache.org Subject: RE: Xsl help I think the problem may be due to the input XML. The contents of the element MOC are not simple in that you have nested comments, elements and text so when you do your Model/MOC=’MOC1’ check it is likely to fail because the contents certainly don’t equal that! Even if you ignore the sub-elements, you’ve at least got a \n after the MOC1 and some indent whitespace before the actual comment <!--method 1-->.
Are you able to redefine the structure of the XML? It would be a hell of a lot easier if the structure were something like this…
<Model>
It’s a lot easier to write the XSLT if the XML content is simple (i.e. don’t mix up text and elements and comments etc).
HTH
-----Original
Message-----
Hello, * In the xsl I set the output method to text. Within the style sheet I am trying to include some string also as output, apart from node values of the input xml. * I do not see any text output in the resulting transformation. Where am I doing a mistake? Xsl rule is something like: <xsl:template
match="/Model/MOC">
Xml <Model>
|
Title: Xsl help
- Xsl help Arunkumar Halebid
- Re: Xsl help Eric Pailleau
- Re: Xsl help Eric Pailleau
- Re: Xsl help Eric Pailleau
- RE: Xsl help Hughes, Michael (GF-X)
- RE: Xsl help Arunkumar Halebid
- RE: Xsl help Arunkumar Halebid
- RE: Xsl help Hughes, Michael (GF-X)
- RE: Xsl help Karpinski, Charles
- RE: Xsl help Matthew Hoyt
- RE: Xsl help Matthew Hoyt
- RE: Xsl help Arunkumar Halebid
- RE: Xsl help Hughes, Michael (GF-X)