XSLT issue

View: New views
3 Messages — Rating Filter:   Alert me  

XSLT issue

by Vit Ulicny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have question about xslt. It seems my imported xslt file is not loaded.

I call my xslt file like this:
  transform:transform($operations,doc("/db/CAA/infoex/xslt/infoex_report_all_html_local.xslt"),())

where I import my other xslt file from the infoex_report_all_html_local.xslt like this:
<xsl:include href="CommonReportTemplates.xslt"/>

I got this error message:
Description: A SAX exception occurred while compiling the stylesheet: ElemTemplateElement error: BCWeatherHeader [at line 38, column 8] [at line 38, column 8]

I guess this means the template, which is defined in second xslt file(CommonReportTemplates.xslt), is not loaded.

any ideas what am I doing wrong??

thank you very much for reading this and for reply

Vit

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: XSLT issue

by Vit Ulicny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vit Ulicny wrote:
Hi all,
I have question about xslt. It seems my imported xslt file is not loaded.

I call my xslt file like this:
  transform:transform($operations,doc("/db/CAA/infoex/xslt/infoex_report_all_html_local.xslt"),())

where I import my other xslt file from the infoex_report_all_html_local.xslt like this:
<xsl:include href="CommonReportTemplates.xslt"/>
just solved. I does not like relative paths.

Re: XSLT issue

by thomas.0007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vit,

You may want to try
      transform:transform($operations,
"xmldb:exist:///db/CAA/infoex/xslt/infoex_report_all_html_local.xslt",() )


Regards,
Thomas

"Vit Ulicny" <ulicnik@...> wrote in message
news:4AE8B825.4010905@......

> Hi all,
> I have question about xslt. It seems my imported xslt file is not loaded.
>
> I call my xslt file like this:
>
> transform:transform($operations,doc("/db/CAA/infoex/xslt/infoex_report_all_html_local.xslt"),())
>
> where I import my other xslt file from the
> infoex_report_all_html_local.xslt like this:
> <xsl:include href="CommonReportTemplates.xslt"/>
>
> I got this error message:
> Description: A SAX exception occurred while compiling the stylesheet:
> ElemTemplateElement error: BCWeatherHeader [at line 38, column 8] [at line
> 38, column 8]
>
> I guess this means the template, which is defined in second xslt
> file(CommonReportTemplates.xslt), is not loaded.
>
> any ideas what am I doing wrong??
>
> thank you very much for reading this and for reply
>
> Vit
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference 




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open