XSL에 대한 완전한 멍청하다고 말함으로써 시작하겠습니다. 나는 내가 생각하기에 매우 간단하다고 생각하고 있지만 구문을 이해하는 데 어려움을 겪고 있습니다.XSL과 연결
나는 위치 이름 (예. 시카고 또는 올랜드)
가 그럼 난 지역 번호없이 전화 번호를 가져옵니다 변수를 가져옵니다 변수가 있습니다.내가하려고하는 것은 위치가 Chicago (773) 또는 Orland (708) 인 경우 Concat ("전화 번호"가있는 지역 번호)라는 If 문입니다.
변수 :
xsl:variable name="haswph" select="string-length(workphone) > 0"
xsl:variable name="hasonum" select="string-length(officenumber) > 0"
출력 :
<xsl:if test="$haswph">
<li id="PhoneField">
<xsl:apply-templates select="hithighlightedproperties/workphone" />
</li>
</xsl:if>
<xsl:if test="$hasonum">
<li id="OfficeField">
<xsl:apply-templates select="hithighlightedproperties/officenumber" />
</li>
</xsl:if>
어떤 제안 또는 올바른 방향으로 점을 크게 감상 할 수있다.
감사합니다, 브랜든
<preferredname>Nigro, Brandon L.</preferredname>
<yomidisplayname></yomidisplayname>
<department>Information Technology</department>
<workphone>555-5555</workphone>
<officenumber>John Academic Center</officenumber>
게시물을 편집하여 입력 XML 샘플과 원하는 출력을 포함하십시오. 또한, 입력에서 "위치"는 어디입니까? 사무실이 시카고 또는 올랜도인지 결정하지 않은 경우 –
AD에서 오는 xsl은 SharePoint 웹 파트의 청크입니다. –
괜찮아요.하지만 여전히 XML "위치"의 출처와 입출력 샘플을 볼 필요가 있습니다. –