Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Cocoon and document() function

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting to use the document() function in an XSL style sheet to load an XML document. I use a string with the name of the filename as the argument to the function. The XSL file and the XML to load are in the same directory. If the XML contains a DOCTYPE element the load fails. (The XML has been validate in XML Spy prior to trying to load it.) The dtd is also in the same directory. If I comment out the DOCTYPE element, then the XML file loads without a problem. We are using the Xalan processor for our XSL transformations with in the Cocoon web framework.
Does anyone one know of any problems with the document() function in this environment?
Thanks, Russ
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like someone else has encountered it - see the link below.
http://tecfa.unige.ch/guides/xml/cocoon/includes/problem.text
[This message has been edited by Jim Baiter (edited March 13, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!