xsl에서 속성 동적생성 할려고 그러는데 좀 도와주세요.
글쓴이: singsingi / 작성시간: 월, 2008/07/21 - 2:18오후
xsl에 처음 시작 하는데요...
아래와 같은 문제 생겨서 그는데 좀 도와주세요..
-my.xml <element type="input"> <properties> <property name="name">she_design_money</property> <property name="style">height:20px;width:80px</property> <property name="readonly">readonly</property> </properties> <pre_caption>디자인비:</pre_caption> <suf_caption>원</suf_caption> </element> -my.xsl <xsl:template match="element" name="el_input"> <input type="text"> <xsl:apply-templates select="properties" /> </input> </xsl:template> <xsl:template match="propeties" name="add_attribute"> <xsl:for-each select="./property"> <xsl:attribute name="./@name" > <xsl:value-of select="." /> </xsl:attribute> </xsl:for-each> </xsl:template>
html에 input타그 생성할시 속성 동적으로 만들어 주려고 하는데 잘 안되요..
의 name속성은 XPath 문자열은 인식 못하는것 같은데 이땐 어케 해야 되는지 누구 좀 도와주세요...
Forums:
댓글 달기