I have xsl file while processing xml file some time I do need several xml file to be include, for that I use document() method, my problem is that all time all xml file which I include are not available online hence my transformation is stop due to file not found!!! does any body help me the best practice for this scenario.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- convert logback.xml to log4j.properties
相关文章
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Fragment Content Overlaps Toolbar and Bottom Navig
- Getting “Error: Missing Constraints in ConstraintL
- xslt localization
- Upgrading transaction.commit_manually() to Django
Create a local Hosts File entry for the website(s) that point to your local machine(or dev server).
An example that points www.foo.com and www.bar.com to the local machine:
Place sample XML file(s) on your local webserver(in necessary folder structure), so that when testing locally any requests for the files on the remote servers(e.g. http://www.foo.com/file1.html, http://www.bar.com/file2.html) will go to your locally hosted files.
The problem is that the XSLT spec leaves it up to the implementation to define how to handle the case when a file referenced by the
document()
function is unavailable. There is a good discussion of this here: http://www.biglist.com/lists/xsl-list/archives/200801/msg00036.htmlIf you have the option to use XSLT 2.0 you can use the doc-available() function to test whether a file is available before calling the document() function.