Hi Alain,

thanks for your feedback! There is no hurry (thanks for asking ;-), I just 
wanted to make sure I'm not missing something.
For my use case, I can change the data source.

I'm, however and in general, interested in the support of comments.

Thanks for your efforts!
        Alex

On 16.09.2013, at 22:24, Alain Couthures <[email protected]> wrote:

> Hi Alexander,
> 
> Comments in instances are currently removed by the XSLT stylesheet and 
> the comment() function is not defined.
> 
> But I have already prototyped support for them and I will have now to 
> check if everything is OK with this.
> 
> Are you in a hurry?
> 
> Thanks!
> 
> -Alain
> 
> Le 16/09/2013 15:24, Alexander Holupirek a écrit :
>> Hi all,
>> 
>> i'm currently not able to access comments in a data instance (surely I'm 
>> missing a crucial point.)
>> 
>> The example below gives me
>> 
>>      ReferenceError: comment is not defined
>> 
>> Example:
>> 
>> <?xml version="1.0" encoding="iso-8859-1"?>
>> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
>> <?xsltforms-options debug="no"?>
>> <html xmlns="http://www.w3.org/1999/xhtml";
>>       xmlns:h="http://www.w3.org/1999/xhtml";
>>       xmlns:ev="http://www.w3.org/2001/xml-events";
>>       xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>>       xmlns:xf="http://www.w3.org/2002/xforms";>
>> <head>
>>   <title>Acessing comments?</title>
>>   <style type="text/css">
>>   body { font-family: sans-serif}
>>   label { display: inline-block; width: 8em; margin: 0 1em; text-align: 
>> right }
>>   </style>
>>   <model xmlns="http://www.w3.org/2002/xforms";>
>>     <instance>
>>       <data xmlns="">
>>         <!-- Comment A -->
>>         <a>A</a>
>>         <!-- Comment B -->
>>         <b>B</b>
>>         <!-- Comment C -->
>>         <c>C</c>
>>       </data>
>>     </instance>
>>   </model>
>> </head>
>> <body>
>>   <xf:repeat nodeset="node()">
>>     <xf:output value="string(.)"/>
>>   </xf:repeat>
>>   <xf:repeat nodeset="comment()">
>>     <xf:output value="string(.)"/>
>>   </xf:repeat>
>> </body>
>> </html>
>> 
>> Can someone please enlighten me?
>> 
>> Thanks a lot,
>>      Alex
>> ------------------------------------------------------------------------------
>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack 
>> includes
>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Xsltforms-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>> 
> 
> 
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Alexander Holupirek
|-- Mosbrugger Strasse 9
|-- 78462 Konstanz
`-- 07531 80 4 80 65 / 0176 600 25 949


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to