If someone is interested on the response:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=587&threadid=1083145&enterthread=y

Cheers
X.

Xavi Beumala wrote:
> Hi there,
> I'm trying to parse xslt files from within as3. When parsing composed 
> xslt tags like "xsl:call-template" or "xsl:with-param" I'm getting an 
> error like: "Access of undefined property template" or  "Access of 
> undefined property param". It seems like the compiler is interpreting 
> with-param like "with" variable minus "param" variable.
> 
> Here's a code snippet:
> 
> package {
>     import flash.display.MovieClip;
>     import flash.net.URLLoader;
>     import flash.net.URLRequest;
>     import flash.events.Event;
>     import flash.events.EventType;
>     import flash.util.trace;
>     
>     public class xslParsingBug extends MovieClip {
>         private var xml:XML;
>         private var xmlLoader:URLLoader;
>         
>         public function xslParsingBug() {
>             xmlLoader = new URLLoader();
>             xmlLoader.addEventListener(EventType.COMPLETE,onXMLLoad);
>             xmlLoader.load (new URLRequest("file5.html"));
>         }
>         
>         private function onXMLLoad (event:Event):Void {
>             xml = XML (xmlLoader.data);
>             var xslNS:Namespace = xml.namespace("xsl");
>             trace (xml.xslNS::[EMAIL PROTECTED]);
>            // this is failing at compile time
>             trace (xml.xslNS::template.xslNS::[EMAIL PROTECTED]);
>         }
>     }
> }
> 
> And the file I'm trying to parse:
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> xmlns:fn="http://www.w3.org/2004/07/xpath-functions"; 
> xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes";>
>   <xsl:output method="html" version="1.0" encoding="ISO-8859-1" 
> indent="yes"/>
>   <xsl:template name="PageCenter">
>       <xsl:call-template name="Banner">
>         <xsl:with-param name="DocXML">myDoc.xml</xsl:with-param>
>         <xsl:with-param name="NumBanner">2</xsl:with-param>
>       </xsl:call-template>
>   </xsl:template>
> </xsl:stylesheet>
> 
> Is this a bug? is there any workarround?
> 
> Thanks in advance!
> Xavi Beumala
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to