xslt - XSL two for-each loops for same node -


I have a problem that I want to make parents bold to round so that children get through ID Do: pid (parent id) and list them My second loop does not work.

XML

XSL

  & lt; Xsl: select & gt; & Lt; Xsl: when test = "@ PARENT_OBH_ID" & gt; & Lt; B & gt; & Lt; Xsl: Select Value = "@ TITLE" /> & Lt; / B & gt; & Lt; Xsl: each selection = "footer" & gt; - & lt; Xsl: Select Value = "@ TITLE" /> & Lt; / XSL: for-each & gt; & Lt; / XSL: When & gt; & Lt; / XSL: Select & gt;  

  & lt; / Xsl: each -G & gt;  

thanks

You probably use it again in templates The system on which you are using means that the reference data is confusing (you are an XSLT parser, not sure which element should read properties from within the second loop)

  & lt; XSL: Select & gt; & Lt; Xsl: when test = "@ PARENT_OBH_ID" & gt; & Lt; B & gt; & Lt; Xsl: Select Value = "@ TITLE" /> & Lt; / B & gt; & Lt; Xsl: Apply-Select Template = "Footer" /> & Lt; / XSL: When & gt; & Lt; / XSL: Select & gt; & Lt; Xsl: template match = "footer" & gt; & Lt; Xsl: Select Value = "@ TITLE" /> & Lt; / XSL: Templates & gt;  

Apply-template restarts the context with the footer as the main focus (hence the @TITLE refers to the title attribute on the footer, which Are you guessing that you were aiming?)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -