|
Subject: RE: [xsl] changing value of xi:include's href variable during compilationg with XSLTPROC From: Nancy Brandt <nancy_brndt@xxxxxxxxx> Date: Tue, 23 Oct 2007 01:18:33 -0700 (PDT) |
Thanks, dear Michael. The problem is when I insert
this customization into my XSL file, the compilation
fails with the following message:
namespace error : Namespace prefix xi on include is
not defined
<xi:include>
^
error
xsltCompileStepPattern : no namespace bound to prefix
xi
compilation error: file jmacro.xsl line 31 element
template
xsltCompilePattern : failed to compile 'xi:include'
Please, help!
--- Michael Kay <mike@xxxxxxxxxxxx> wrote:
> >
> > And now the tricky part: the xi:include mechanism.
> If I call
> > an XML file within another file via xi:include,
> the compiler
> > does not turn the included file to
> <filename>_online.xml.
>
> Well from your description it looks like
>
> <xsl:template match="xi:include">
> <xi:include>
> <xsl:copy-of select="@*"/>
> <xsl:attribute name="href">
> <xsl:value-of select="substring-before(.,
> '.')"/>
> <xsl:text>_online.xml</xsl:text>
> </xsl:attribute>
> </xi:include>
> </xsl:template>
>
> But perhaps I've completely misunderstood the
> requirement (or the nature of
> your difficulty).
>
> Michael Kay
> http://www.saxonica.com/
>
> >
> > This is a problem if the called file contains
> macros, for
> > example a macro for inserting graphics. The macro
> is not
> > processed, and it does not turn to a mediaobject.
> >
> > What I would like to have is a kind of a
> template/mechanism
> > which will automatically substitute all instances
> of
> > xi:include href="myfile.xml" with xi:include
> > href="myfile_online.xml" during the first step of
> compilation
> > with XSLTPROC.
> >
> > Is it possible to create such?
> > Please, advise...
> >
> > Thank you very much in advance!!!!
> > My best wishes,
> > Nancy
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection
> > around http://mail.yahoo.com
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] using key to merge data, Michael Kay | Thread | RE: [xsl] changing value of xi:incl, Michael Kay |
| [xsl] 'number-rows-spanned' doesn't, Kavita Surana | Date | RE: [xsl] changing value of xi:incl, Michael Kay |
| Month |