![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to import data from an XML file, but using an XSLT sheet that is imbedded in the FileMaker solution? The normal way to write such a script step is to specify a file containing the XML data, then to specify a separate XSL file that tells FM how to interpret the XML. I would like to avoid using a text file separate from the solution, so that the whole solution, including the XSL, is in one file. - In the Script step Import Records using XML, the ³Specify XML and XSL Options² dialog gives you the option of specifying a file path or a Calculation. What would be nice is to make the calculation reference a container field that contains the text of the Style Sheet. - ScriptMaker lets me specify such a field, but it returns a runtime error.Has anyone done this? |
#3
| |||
| |||
|
|
Is there a way to import data from an XML file, but using an XSLT sheet that is imbedded in the FileMaker solution? The normal way to write such a script step is to specify a file containing the XML data, then to specify a separate XSL file that tells FM how to interpret the XML. I would like to avoid using a text file separate from the solution, so that the whole solution, including the XSL, is in one file. - In the Script step Import Records using XML, the ³Specify XML and XSL Options² dialog gives you the option of specifying a file path or a Calculation. What would be nice is to make the calculation reference a container field that contains the text of the Style Sheet. - ScriptMaker lets me specify such a field, but it returns a runtime error. Has anyone done this? |
#4
| |||
| |||
|
|
- You could write a VBScript/Applescript to delete the exported XSLT stylesheet |
#5
| |||
| |||
|
|
- You could write a VBScript/Applescript to delete the exported XSLT stylesheet You could also delete the file using the Export Records script step. First empty your found set, by omitting all records for example. Then call Export Records with the file you want deleted as the destination and the Perform Without Dialog box checked. This will delete the file. Kind of a hack, but an interesting technique. |
![]() |
| Thread Tools | |
| Display Modes | |
| |