cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertold Reddemann" <RE...@de.ibm.com>
Subject Validating a schema during stylesheet processing
Date Thu, 14 Feb 2002 07:55:27 GMT
Hi, I just installed cocoonand tried to run a simple transformation
together with XINCLUDE. It worked well for astart, but I have two
questions:

- I didn't find any possibility to do schema validation of the input XML /
XML generated with XINCLUDE, which is input for the stylesheet ?.

- Is there a possibility to write the result of the stylesheet operation or
XINCLUDE to a file.?

Thank you,

********************************************
To give you an impression of the source and sitemap:

sitemap:

   <map:match pattern="xinc/newfld">
     <map:generate src="xinc/newfld.xml"/>
     <map:transform type="xinclude"/>
     <map:transform src="xinc/newFld.xsl"/>
     <map:serialize/>
   </map:match>


Main input source with schema information

<?xml version="1.0"?>
<!--?cocoon-process type="xslt"?-->
<!--?xml-stylesheet href="../stylesheets/newFld.xsl" type="text/xsl"?-->
<Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:xi="http://www.w3.org/2001/XInclude"
     xsi:noNamespaceSchemaLocation="newFld.xsd"
     GID="AAMPAN" Name="EU2_AMT_WF" Encoding="no" Version="1">
<xi:include href="newFld.flddoc"/>
<xi:include href="Smallinteger.dtxml"/>
<Set>
     <Name>
          <xi:include href="AG545R.setxml#xpointer(/Set/Name)"/>
     </Name>
     <DataType>
          <xi:include href="AG545R.setxml#xpointer(/Set/DataType)"/>
     </DataType>
</Set>
</Field>


Kind regards / Mit freundlichen GrĂ¼ssen
Bertold Reddemann

CIC Host Development  - Dept. 5075,  Addr.: 71032-01
IBM Development Laboratory Boeblingen, Germany
Tel: 0049(0)7031 16-2087,  Fax: - 3980, @: redde@de.ibm.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message