Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Struggling with XSL...

Featured Replies

Given this XML...


<?xml version="1.0" encoding="ISO-8859-1"?>



   

      

         AB:123456

         AB

         ALPHA BETA

         123456

         FUNK

         FUNKINESS

         MEDINA

         FUNKY COLD MEDINA

      

      

         AB 123456 FUNKY COLD MEDINA

         AB 123456 FUNKY COLD MEDINA WITH 14 SILVER SPARKLY THINGAMAJIGS

         

            This is the best Medina you've ever experienced.

            Really redefines the concept of Medina in all its funkiness.

         

      

      

         

            

               FUNKYCOLD.JPG

               http://www.example.com/images/FUNKYCOLD.JPG

               http://www.example.com/images/thumbs/FUNKYCOLD.JPG

            

            

               FUNKYHOT.JPG

               http://www.example.com/images/FUNKYHOT.JPG

               http://www.example.com/images/thumbs/FUNKYHOT.JPG

            

         

         

            

               User Guide

               FUNKYGUIDE.PDF

               http://www.example.com/pdf/FUNKYGUIDE.PDF

            

            

               Quick Specs

               FUNKYSPECS.PDF

               http://www.example.com/pdf/FUNKYSPECS.PDF

            

         

      

      

         

            N/A

            N/A

            $39.95

            29%

            true

            N/A

            N/A

            21%

            N/A

            N/A

            $99.95

            $89.95

            true

            $69.95

            $59.95

            $49.95

            true

            $29.95

         

      

   

   

      

         ZIP:008999

         ZIP

         ZIPPADYDOODAH

         0089999

         SLIPPERS

         SLIPPERS FOR YOUR FEET

         GLASS

         GLASS SLIPPERS

      

      




...is there a reason this XSL won't work? Getting "invalid document structure errors"...





<?xml version="1.0" encoding="UTF-8"?>





	



	



		



			0



			



			





				

					

					

					

					

					

					

					

				



				



					



							

								

								

								

								

								

								

								

							



					



				

		

		



	

	



AFAICT, the problem is with the source XML document - it appears to be cut off in the middle.

  • Author

Sorry...I was just posting a sample. The XML document does in fact continue, containing 9799 items (or rather sections). Thought a single example might suffice : But it is properly terminated at the end.

Note that this document does import if I use the generic msdso_elem.xsl stylesheet which comes with FMP, so I'm thinking the basic XML is OK. The problem with using that is that it only picks up the "parent" elements (4 fields for each record: classification, marketing_copy, media, and managed_data. I need to get the stuff under those elements.

Can you zip your XSL stylesheet and attach it here? What you posted seems fine to me (apart from some path errors - but those wouldn't cause Filemaker to stop). However, the forum doesn't like XML code, so one cannot be sure.

  • Author

Here y'go...thanks for the help.

testXSL.zip

I have no problems importing your source XML (after closing the open tags) using your stylesheet.

source_Converted.zip

  • Author

Thanks again for all the help - the problem turned out to be a namespace declaration in that top element. For some reason the FMP "msdso_elem.xslt" didn't care about that, but the one I wrote did.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.