bonngo Posted March 21, 2008 Posted March 21, 2008 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
Fenton Posted March 21, 2008 Posted March 21, 2008 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
Recommended Posts
This topic is 6091 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now