Michelle --

You'd probably be better off asking this on the Mulberry list.  We are
pretty focused on Xalan development and Xalan-specific problems and
don't always have the time to delve into issues like this.  You can
subscribe to the Mulberry list and search the archives and some
excellent FAQ pages (like Dave Pawson's) at
http://www.mulberrytech.com/xsl/index.html

The short answer to your question is that, yes, you'll have to bring in
the other XML document using the document() function.  That's the only
way I know of to include other documents off the top of my head.

Gary

"Pinto, Michelle" wrote:
> 
> Hi,
> 
> I have a question regarding xalan, XSL and schemas. Any pointers will be
> appreciated. Thanks for any help. Apologize if this is wrong mailing list.
> 
> I am trying to generate an XML instance given its XML schema file and a XSL
> file using xalan-j_2_2_D7, testing this using java
> org.apache.xalan.xslt.Process -in main.xsd -xsl schema.xsl
> 
> The transformation works fine except for elements that are defined in .xsd
> files outside main.xsd. These are included in main.xsd by means of the
> xsd:include.
> 
> Do I require a template rule with the document() function, or some other
> XSLT/xalan function that recognizes the elements defined by means of
> <xsd:include schemaLocation="other.xsd"/> in main.xsd.
> 
> Could you please point me to some examples, if thats possible.
> Thanks again.
> 
> Regards,
> Michelle Pinto

Reply via email to