cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huber" <berni_hu...@a1.net>
Subject Ant: Re: XInclude
Date Wed, 21 Nov 2001 10:43:09 GMT
Check logkit.xconf enable DEBUG,
Check web.xml enable DEBUG


Huber Bernhard, email: berni.huber@a1.net, homepage:
members.a1.net/berni_huber/index.html



----- Ursprüngliche Nachricht -----
Von: Stephan Michels <stephan@vern.chem.tu-berlin.de>
Datum: Mittwoch, November 21, 2001 11:32
Betreff: Re: XInclude

> 
> 
> On Wed, 21 Nov 2001, Bernhard Huber wrote:
> 
> > Try using <map:transform type="log"/> after xinclude, this will 
> show you
> > the xml-content
> > after xinclude transformation, and before xinclude
> > Perhaps the xslt processing eats up the include element?
> > Use copyover.xsl to copy elements see in the documents stylesheet
> > directory for copyover.
> 
> 
> Before xinclude:
> [...]
> [startElement] uri=null,local=title,raw=title
> [characters] Abbildung: Beispieltitel
> [endElement] uri=null,local=title,qname=title
> [characters]
> 
> [startPrefixMapping] prefix=xi,uri=http://www.w3.org/2001/XInclude
> [startElement] uri=,local=media,raw=media
> [            ] 1.
>
uri=http://www.w3.org/2000/xmlns/,local=xi,qname=xmlns:xi,type=CDATA,value=http://www.w3.org/2001/XInclude
> [startElement]
> uri=http://www.w3.org/2001/XInclude,local=include,raw=xi:include
> [            ] 1.
> uri=,local=href,qname=href,type=CDATA,value=/vern/public/FIZ-
> Ablaufumgebung/ch/1/pc/xmltest/vscml/music.third[endElement]
> uri=http://www.w3.org/2001/XInclude,local=include,qname=xi:include
> [characters]
> 
> [startElement] uri=null,local=parameter,raw=parameter
> [            ] 1. uri=,local=name,qname=name,type=CDATA,value=bla
> [            ] 2. uri=,local=value,qname=value,type=CDATA,value=blah
> [endElement] uri=null,local=parameter,qname=parameter
> [characters]
> [...]
> 
> After:
> [...]
> [startElement] uri=null,local=title,raw=title
> [characters] Abbildung: Beispieltitel
> [endElement] uri=null,local=title,qname=title
> [characters]
> 
> [startPrefixMapping] prefix=xi,uri=http://www.w3.org/2001/XInclude
> [startElement] uri=,local=media,raw=media
> [            ] 1.
>
uri=http://www.w3.org/2000/xmlns/,local=xi,qname=xmlns:xi,type=CDATA,value=http://www.w3.org/2001/XInclude
> [log stopps here]
> 
> Where must I search to find a possible error?
> 
> 
> In XIncludeTransformer.java:
> protected void processXIncludeElement(String href, String parse) 
> throwsSAXException,ProcessingException,IOException {
>        if (getLogger().isDebugEnabled())
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> With which parameter could I enable this feature?
> 
> 
> 
> 
> 
> 
> > Stephan Michels wrote:
> >
> > >
> > >On Tue, 20 Nov 2001, Bernhard Huber wrote:
> > >
> > >>hi,
> > >>have included the <map:transform type="xinclude"/> in the 
> pipeline of
> > >>your sitemap?
> > >>
> > >>something like that:
> > >>      <map:match pattern="simple-xinc.xml">
> > >>        <map:generate src="simple-xinc.xml"/>
> > >>        <map:label name="content"/>
> > >>        <map:transform type="xinclude"/> <!-- aktivate the xinlude
> > >>transfomer!! ->
> > >>
> > >>        <map:transform type="i18n"/>
> > >>        <map:transform src="simple.xsl"/>
> > >>        <map:serialize/>
> > >>      </map:match>
> > >>
> > >
> > >Yes, of course. That's not the fault, but thank you for the answer.
> > >
> > ><map:when test="vscml2xml">
> > > <map:transform type="diagram-extractor"/>
> > > <map:transform src="stylesheets/vs/diagram-extractor.xsl"/>
> > >
> > > <map:transform type="mathml-extractor"/>
> > > <map:transform src="stylesheets/vs/mathml-extractor.xsl"/>
> > >
> > > <map:transform
> > >src="/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/th-
> importer.xsl"/>> > <map:transform type="xinclude"/>
> > > <!--<map:transform
> > >src="/vern/public/FIZ-
> Ablaufumgebung/ch/1/pc/xmltest/vscml/vscth2html.xsl"/>-->
> > >
> > > <!--<map:transform type="extractor"/>
> > > <map:transform src="stylesheets/vs/svg-extractor.xsl"/>-->
> > > <map:serialize type="xml"/>
> > ></map:when>
> > >
> > >
> > >
> > >
> > >
> > >>Stephan Michels wrote:
> > >>
> > >>>Hi,
> > >>>has anyone a working example for the xinclude transformer. My 
> example> >>>doesnt'work:
> > >>>
> > >>>I want to include another xml file from my fs.
> > >>><mediablock>
> > >>><title>Abbildung: Beispieltitel</title>
> > >>> <media xmlns:xi="" target="l">http://www.w3.org/2001/XInclude">
> > >>>  <xi:include href="/vern/public/music.third"/>
> > >>>  <parameter name="bla" value="blah"/>
> > >>> </media>
> > >>> <description>
> > >>> <block>
> > >>>  Erläuterner Text:
> > >>> </block>
> > >>> <block>
> > >>>  bla bla bla bla bla bla bla bla bla
> > >>> </block>
> > >>></description>
> > >>></mediablock>
> > >>>
> > >>>output:
> > >>><mediablock>
> > >>><title>Abbildung: Beispieltitel</title>
> > >>> <media xmlns:xi="http://www.w3.org/2001/XInclude"
> > >>>-----Here the output stopps-----------
> > >>>
> > >>>I couldn't find an error in the log files.
> > >>>
> > >>>I have also a question, must I use "file://"?
> > >>>
> > >>>Thanx, Stephan Michels.
> > >>>
> > >>>
> > >>>--------------------------------------------------------------
> -------
> > >>>Please check that your question has not already been answered 
> in the
> > >>>FAQ before posting. <" 
> target="l">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>> >>>
> > >>>
> > >>
> > >>
> > >>---------------------------------------------------------------
> ------
> > >>Please check that your question has not already been answered 
> in the
> > >>FAQ before posting. <" 
> target="l">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>> >>
> > >
> > >
> > >----------------------------------------------------------------
> -----
> > >Please check that your question has not already been answered 
> in the
> > >FAQ before posting. <" 
> target="l">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>
> > >
> > >
> >
> >
> >
> > -----------------------------------------------------------------
> ----
> > Please check that your question has not already been answered in the
> > FAQ before posting. <" 
> target="l">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>
> >
> 
> 
> -------------------------------------------------------------------
> --
> Please check that your question has not already been answered in the
> FAQ before posting. <" 
> target="l">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>
> 
> 


---------------------------------------------------------------------
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