[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: WML input problem
Did you test the code as it is from
http://sources.redhat.com/ml/xsl-list/2002-07/msg00464.html? Do you have
any possibility to compare the output of Sablotron with the output of
another processor, e.g. at least with MSXML in IE
(http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/000/543/msdncompositedoc.xml&frame=true)
or Transformiix in Mozilla (DOM Inspector)?
Especially the output of the text after the <option/> elements is really strange. Is Sablotron so buggy? should i used some thing else except <xsl:apply-templates> in between<option> and </option> and No, it should work. <xsl:apply-templates/> is the same as <xsl:apply-templates select="node()"/> and node() consists of elements, text nodes, comments and processing instructions. So I don't understand why it should not work. i have changed the key for checkbox like Using it with my code/Muenchian Grouping it's definitely wrong. You will group the input elements which have @type='checkbox' by their @type - so all of them will be in one group. Because of your input <input type="checkbox" name="musicpref_rnb" checked="checked">R&B</input> <input type="checkbox" name="musicpref_jazz" checked="checked">Jazz</input> <input type="checkbox" name="musicpref_blues" checked="checked">Blues</input><br/> <input type="checkbox" name="musicpref_newage" checked="checked"> New Age</input> I grouped them by the first part of @name (all with 'musicpref_' in one group). If you want to group them in a different way, e.g. all in one <p> or something similar, you have to change the @use of the key and in the same way the second parameter of key('checkboxes', ...). and if i have a very simple html like Again: <xsl:apply-templates/> tries to apply templates for all child nodes of the current node. In your short example you only have a text node as child of the body element, which you will see in the output, because of a built-in template similar to the following: <xsl:template match="text()"> <xsl:value-of select="."/> </xsl:template> For more information on built-in templates look at http://www.dpawson.co.uk/xsl/sect2/defaultrule.html. I hope I could help you a bit. Try to compare Sablotron's output with some other processor's output. You will at least have on of those both browsers on your machine, won't you? Regards, Joerg XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|