fiddlerpianist / knitml

Automatically exported from code.google.com/p/knitml
11 stars 2 forks source link

"drop yo" not in library #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to write up this pattern in KEL:
http://www.wingedsheep.com/blog/2009/01/14/double_dropped_scarf.html

It's a short pattern with a simple repeated section. 
Two of the interesting rows are these:
Row 21: K1,* yo, yo, k1 * repeat to end of row
Row 22: K1,* Drop yo's, k1 * repeat to end of row

However I'm unable to represent the "drop yo" step in KEL

This is the KEL I used to represent these two lines:

Row: K1, repeat to end { yo, yo, k1 }
Row: K1, repeat to end { drop yo, drop yo, k1 } 

I get the following error on the XML screen: Could not convert text to XML:
exception is groovy.lang.MissingPropertyException: No such property: yo for
class: com.knitml.el.definition.KnittingDefinitions

If I change the lines to this

        Row: K1, repeat to end { yo, yo, k1 }
        Row: K1, repeat to end { drop, drop, k1 } 
The XML view renders successfully, but the pattern view fails with this:

Could not render pattern: exception is
com.knitml.renderer.common.RenderingException:
org.jibx.runtime.JiBXException: No unmarshaller for element
"{http://www.knitml.com/schema/pattern}drop" (line 58, col 11) 
at 
com.knitml.renderer.service.impl.RenderingServiceImpl.renderPattern(RenderingSer
viceImpl.java:22)

at 
com.knitml.gpec.kel.editors.PatternViewControlContainer.doRenderPattern(PatternV
iewControlContainer.java:136)

I'm using 0.2.0 on MacOSX 10.6

Original issue reported on code.google.com by jessica.sant on 19 Mar 2010 at 12:48

GoogleCodeExporter commented 9 years ago
"drop" isn't in the spec. I'll change this request to a spec enhancement.

Original comment by fiddlerpianist@gmail.com on 29 Mar 2010 at 4:28

GoogleCodeExporter commented 9 years ago

Original comment by fiddlerpianist@gmail.com on 29 Mar 2010 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by fiddlerpianist@gmail.com on 4 Nov 2011 at 4:16