cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@vern.chem.tu-berlin.de>
Subject XInclude
Date Fri, 23 Nov 2001 12:43:54 GMT
Hi,
I have some problems using the xinclude transformer. I produce
the xinclude elements by a xslt.

sitemap.xmap:
[...]
<map:transform src="stylesheets/vs/th-importer.xsl"/>
<map:transform type="newxinclude"/>
[...]

th-importer.xsl:
[...]
<xsl:template match="media">
<media>
 <xi:include>
  <xsl:attribute name="href">/home/stephan/Projekte/FIZ/VSC01<xsl:value-of
                 select="@ref"/>.third</xsl:attribute>
  </xi:include>
 <xsl:apply-templates select="*|text()|processing-instruction()"/>
</media>
</xsl:template>
[...]

output:
<media xmlns:xi="http://www.w3.org/2001/XInclude">
 <xi:include
href="/home/stephan/Projekte/FIZ/VSC01/ch/1/pc/xmltest/vscml/music.third"/>
 <parameter name="bla" value="blah"/>
</media>

I debug the code and found that:
XIncludeTransformer.java:196:
getLogger().debug("Base URI: " + current_xmlbase_uri.getSystemId());
produce a nullpointer exception, because current_xmlbase_uri is not set.

Must I set an base attribute? The working draft from w3 doesn't contain
this attribute.
Is this a known problem?

Thank you, Stephan Michels.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message