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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to