March 21, 200817 yr I am trying to create a stylesheet for an xml file. I have never done this before, so, I reduced the xml file down to one field to see if I could write the stylesheet. I am encountering one error message on the import and cannot figure out what it is. Can anyone help me? Thanks. xml.zip
March 21, 200817 yr Well, you generally only get 1 error message, but unfortunately there were several smallish errors. 1. In the stylesheet tag, you should use the proper namespace URL for xsl. 2. You forgot the element (pretty important -) 3. The template match should likely be on the root "/", yours was on "csxmlfeed", which may be a file name, but has little to do with this. 4. While were on the subject of file names, you forgot the period before "xslt" 5. You can't just say: because it doesn't take into account the root element, works Or you could use "/newsclip" as the template match (it would be in #3 above). But I tend to just use "/", and add the root element later. 6. You can get the value of the via just: Because you've specified as the element which determines the FileMaker s (records), and you're already in the node at this point. 7. You had "xls:for-each", it should be "xsl:for-each" (xls is an Excel extension :-) csl.xslt.zip
Create an account or sign in to comment